Here you can find the source of randomGreyLevels(double max, double min)
public static double[] randomGreyLevels(double max, double min)
//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; } }