MoreEnumerableRandomDouble Method (Random) |
Returns an infinite sequence of random double values between 0.0 and 1.0
using the supplied random number generator.
Namespace:
MoreLinq
Assembly:
MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax public static IEnumerable<double> RandomDouble(
Random rand
)
Public Shared Function RandomDouble (
rand As Random
) As IEnumerable(Of Double)
public:
static IEnumerable<double>^ RandomDouble(
Random^ rand
)
static member RandomDouble :
rand : Random -> IEnumerable<float>
Parameters
- rand
- Type: SystemRandom
Generator used to produce random numbers
Return Value
Type:
IEnumerableDoubleAn infinite sequence of random doubles
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown if rand is . |
See Also