Here you can find the source of randomArray(int len)
public static double[] randomArray(int len)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] randomArray(int len) { double[] data = new double[len]; for (int i = 0; i < len; i++) { // data[i] = r.nextDouble() / 10 - 0.05; data[i] = 0;//from ww w . ja va 2 s. c o m } return data; } }