Java Random randomGreyLevels(double max, double min)

Here you can find the source of randomGreyLevels(double max, double min)

Description

random Grey Levels

License

Apache License

Declaration

public static double[] randomGreyLevels(double max, double min) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.*;

public class Main {
    public static final Random RND = new Random();

    public static double[] randomGreyLevels(double max, double min) {
        double del = max - min;
        double[] ret = new double[224 * 65];
        for (int i = 0; i < ret.length; i++) {
            ret[i] = del * RND.nextDouble() + min;

        }/*  w  w  w .ja v a  2s.  c om*/
        return ret;
    }
}

Related

  1. randomFloat(float aVal)
  2. randomFloat(float min, float max)
  3. randomFloatBetween(float begin, float end)
  4. randomFromIterator(Iterator iter)
  5. randomGaussian(int numElements)
  6. randomIcon()
  7. randomID()
  8. randomId()
  9. randomIndices(Random r, int minCount, int maxCount)