public static int[] randomNumber(int n){
  int[] num=new int[n];
  for (int i=0; i < num.length; i++) {
    num[i]=(int)(rGen.nextDouble() * 10);
  }
  return num;
}

public static int [ ] randomNumber ( int n ) { int [ ] num = new int [ n ] ; for ( int i = 0 ; i < num . length ; i ++ ) { num [ i ] = ( int ) ( rGen . nextDouble ( ) * 10 ) ; } return num ; }
generate random number of size n .
