Array Random
6
Method for get n random number's
public double[] getRandomArray(int n){
if (n<0){
return null;
}
double res [] = new double[n];
for (int i=0;i<n;i++){
res[i] = java.lang.Math.random();
//System.out.println("valor: " + res[i]);
}
return res;
}






There are currently no comments for this snippet.