public static double[] udary(int n){
  double d[]=new double[n];
  for (int i=0; i < n; i++) {
    d[i]=R.nextDouble();
  }
  return d;
}

public static double [ ] udary ( int n ) { double d [ ] = new double [ n ] ; for ( int i = 0 ; i < n ; i ++ ) { d [ i ] = R . nextDouble ( ) ; } return d ; }
generates a one - dimensional array of uniform random doubles .
