Tuesday, July 28, 2009

Random Double number within given range in c#

double NextDouble(Random rng, double min, double max)
{
return min + (rng.NextDouble() * (max - min));
}

No comments: