public static Zmat uzmat(int m,int n) throws JampackException {
  Zmat zm=new Zmat(m,n);
  for (int i=0; i < m; i++) {
    for (int j=0; j < n; j++) {
      zm.re[i][j]=R.nextDouble();
      zm.im[i][j]=R.nextDouble();
    }
  }
  return zm;
}

public static Zmat uzmat ( int m , int n ) throws JampackException { Zmat zm = new Zmat ( m , n ) ; for ( int i = 0 ; i < m ; i ++ ) { for ( int j = 0 ; j < n ; j ++ ) { zm . re [ i ] [ j ] = R . nextDouble ( ) ; zm . im [ i ] [ j ] = R . nextDouble ( ) ; } } return zm ; }
generates a uniform random zmat .
