Click or drag to resize

MoreEnumerableRandom Method (Random)

Returns an infinite sequence of random integers using the supplied random number generator.

Namespace:  MoreLinq
Assembly:  MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax
public static IEnumerable<int> Random(
	Random rand
)

Parameters

rand
Type: SystemRandom
Random generator used to produce random numbers

Return Value

Type: IEnumerableInt32
An infinite sequence of random integers
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if rand is .
See Also