public void randomizeIncomingWeights(){
  for (  Neuron n : getNeuronList()) {
    for (    Synapse s : n.getFanIn()) {
      s.setLowerBound(0);
      s.setStrength(s.getUpperBound() * Math.random());
    }
  }
}

public void randomizeIncomingWeights ( ) { for ( Neuron n : getNeuronList ( ) ) { for ( Synapse s : n . getFanIn ( ) ) { s . setLowerBound ( 0 ) ; s . setStrength ( s . getUpperBound ( ) * Math . random ( ) ) ; } } }
randomize all weights coming in to this network . the weights will be between 0 and the upper bound of each synapse .
