Click or drag to resize
MoreEnumerableRandom Method (Random, Int32)
Returns an infinite sequence of random integers between 0 and maxValue using the supplied random number generator.

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

Parameters

rand
Type: SystemRandom
Random generator used to produce values
maxValue
Type: SystemInt32
Exclusive upper bound for random values returned

Return Value

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