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