public void randomizeWeights(Random random){
  for (int i=0; i < weights.length; i++)   weights[i]=random.nextDouble() * 0.2;
}

public void randomizeWeights ( Random random ) { for ( int i = 0 ; i < weights . length ; i ++ ) weights [ i ] = random . nextDouble ( ) * 0.2 ; }
generates a new weight
