MoreEnumerableRandom(Random) Method

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

Definition

Namespace: MoreLinq
Assembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
C#
public static IEnumerable<int> Random(
	Random rand
)

Parameters

rand  Random
Random generator used to produce random numbers

Return Value

IEnumerableInt32
An infinite sequence of random integers

Exceptions

ArgumentNullExceptionThrown if rand is .

See Also