MoreEnumerableRandom Method (Int32, Int32) |
Returns an infinite sequence of random integers between minValue and
maxValue.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 2.0.0
Syntax public static IEnumerable<int> Random(
int minValue,
int maxValue
)
Public Shared Function Random (
minValue As Integer,
maxValue As Integer
) As IEnumerable(Of Integer)
public:
static IEnumerable<int>^ Random(
int minValue,
int maxValue
)
static member Random :
minValue : int *
maxValue : int -> IEnumerable<int>
Parameters
- minValue
- Type: SystemInt32
Inclusive lower bound of the values returned - maxValue
- Type: SystemInt32
Exclusive upper bound of the values returned
Return Value
Type:
IEnumerableInt32An infinite sequence of random integers
See Also