public static double[] generateUniform(int l){
  double[] ret=new double[l];
  java.util.Random rgen=new java.util.Random();
  for (int i=0; i < l; i++) {
    ret[i]=rgen.nextDouble();
  }
  return ret;
}

public static double [ ] generateUniform ( int l ) { double [ ] ret = new double [ l ] ; java . util . Random rgen = new java . util . Random ( ) ; for ( int i = 0 ; i < l ; i ++ ) { ret [ i ] = rgen . nextDouble ( ) ; } return ret ; }
this will generate a series of uniformally distributed numbers between l times
