Click or drag to resize
MoreEnumerable.Random Method (Random)
Returns an infinite sequence of random integers using the supplied random number generator.

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

Parameters

rand
Type: System.Random
Random generator used to produce random numbers

Return Value

Type: IEnumerable<Int32>
An infinite sequence of random integers
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if rand is null.
See Also