public static double[] random(int m){
  double[] res=new double[m];
  for (int i=0; i < m; ++i) {
    res[i]=Math.random();
  }
  return (res);
}

public static double [ ] random ( int m ) { double [ ] res = new double [ m ] ; for ( int i = 0 ; i < m ; ++ i ) { res [ i ] = Math . random ( ) ; } return ( res ) ; }
generates a random m - dimensional vector object .
