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