Tuesday, October 28, 2014

Random Number Between 2 Double Numbers


 public double GetRandomNumber(double minimum, double maximum)  
 {   
   Random random = new Random();  
   return random.NextDouble() * (maximum - minimum) + minimum;  
 }  

No comments:

Post a Comment