You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The inclusive lower bound of the random number returned.
maxValue
double
The inclusive upper bound of the random number returned.
Description
Returns a random double-precision floating point number that is within a specified range.
Benefits
System.Random does not support ranges for floating point values, Random.NextDouble() simply returns a value between 0-1. This extension method would offer this missing functionaality.
Type
System.Random
Extension method signature
Parameters
double
double
Description
Returns a random double-precision floating point number that is within a specified range.
Benefits
System.Random does not support ranges for floating point values,
Random.NextDouble()
simply returns a value between 0-1. This extension method would offer this missing functionaality.Drawbacks
n/a
(Optional) Implementation example
The text was updated successfully, but these errors were encountered: