MoreEnumerableRandom(Random, Int32) Method
Returns an infinite sequence of random integers between zero and a
given maximum using the supplied random number generator.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 4.1.0+0e154ef592f33ce0f6f3d534a9eedee273f0ce72
public static IEnumerable<int> Random(
Random rand,
int maxValue
)
Public Shared Function Random (
rand As Random,
maxValue As Integer
) As IEnumerable(Of Integer)
public:
static IEnumerable<int>^ Random(
Random^ rand,
int maxValue
)
static member Random :
rand : Random *
maxValue : int -> IEnumerable<int>
- rand Random
- Random generator used to produce values
- maxValue Int32
- Exclusive upper bound for random values returned
IEnumerableInt32An infinite sequence of random integers