public static float[] randomVector(int aSize,long seed){
  Random rand=new Random(seed);
  float[] unk=new float[aSize];
  for (int i=0; i < unk.length; i++) {
    unk[i]=(rand.nextFloat() - 0.5f) / aSize;
  }
  return unk;
}

public static float [ ] randomVector ( int aSize , long seed ) { Random rand = new Random ( seed ) ; float [ ] unk = new float [ aSize ] ; for ( int i = 0 ; i < unk . length ; i ++ ) { unk [ i ] = ( rand . nextFloat ( ) - 0.5f ) / aSize ; } return unk ; }
create a random vector . values are between - 0 . 5 and 0 . 5 ,
