Method RandomDouble
View SourceRandomDouble()
Returns an infinite sequence of random double values between 0.0 and 1.0.
Declaration
public static IEnumerable<double> RandomDouble()
Returns
Type | Description |
---|---|
IEnumerable<double> | An infinite sequence of random doubles |
Remarks
This operator uses deferred execution and streams its result.
RandomDouble(Random)
Returns an infinite sequence of random double values between 0.0 and 1.0 using the supplied random number generator.
Declaration
public static IEnumerable<double> RandomDouble(Random rand)
Parameters
Type | Name | Description |
---|---|---|
Random | rand | Random generator used to produce values |
Returns
Type | Description |
---|---|
IEnumerable<double> | An infinite sequence of random doubles |
Remarks
This operator uses deferred execution and streams its result.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|