public static float generateRandomFloatBetween(float lowerLimit,float upperLimit){
  return lowerLimit + ((upperLimit - lowerLimit) * _r.nextFloat());
}

public static float generateRandomFloatBetween ( float lowerLimit , float upperLimit ) { return lowerLimit + ( ( upperLimit - lowerLimit ) * _r . nextFloat ( ) ) ; }
generates a random float between two limits . both limits are inclusive .
