Here you can find the source of randomDoubleArray(int size)
public static double[] randomDoubleArray(int size)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static double[] randomDoubleArray(int size) { Random rand = new Random(System.currentTimeMillis()); return randomDoubleArray(size, rand); }/*from w w w . j a v a2 s . c o m*/ public static double[] randomDoubleArray(int size, Random rand) { double[] ary = new double[size]; for (int i = 0; i < size; ++i) { ary[i] = rand.nextDouble(); } return ary; } }