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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment