RandomExtensions¶
-
class
RandomExtensions
: System.Object These extension methods provide additional types of random number generation on the T:System.Random class provided by .NET
-
public double
NextGuassian
(System.Random rand, double min, double max) Returns a new normally distributed number.
Parameters: - rand (System.Random) – The random number generator.
- min (double) – The negative sigma 3 lower bound.
- max (double) – The positive sigma 3 upper bound.
Returns: A random normally distributed number.
-
public double
NextGuassianClamped
(System.Random rand, double min, double max) Returns a new normally distributed number, clamped to specified values.
Parameters: - rand (System.Random) – The random number generator.
- min (double) – The lower bound.
- max (double) – The upper bound.
Returns: A random normally distributed number, clamped to within sigma 3.
-
public double