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

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