Method NextDouble
NextDouble()
Returns a uniformly random double value in the interval [0, 1).
Declaration
public double NextDouble()
Returns
Type | Description |
---|---|
Double | A uniformly random double value in the range [0, 1). |
NextDouble(Double)
Returns a uniformly random double value in the interval [0, max).
Declaration
public double NextDouble(double max)
Parameters
Type | Name | Description |
---|---|---|
Double | max | The maximum value to generate, exclusive. |
Returns
Type | Description |
---|---|
Double | A uniformly random double value in the range [0, max). |
NextDouble(Double, Double)
Returns a uniformly random double value in the interval [min, max).
Declaration
public double NextDouble(double min, double max)
Parameters
Type | Name | Description |
---|---|---|
Double | min | The minimum value to generate, inclusive. |
Double | max | The maximum value to generate, exclusive. |
Returns
Type | Description |
---|---|
Double | A uniformly random double value in the range [min, max). |