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.4.0+6d97c3b1d482f98300f4446df14742b0e3fafbec
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