I would like to generate a random floating point number between 2 values. What is the best way to do this in C#?
System.Random r = new System.Random(); double rnd( double a, double b ) { return a + r.NextDouble()*(b-a); }