MoreEnumerableRandom Method (Random) |
Returns an infinite sequence of random integers using the supplied
random number generator.
Namespace:
MoreLinq
Assembly:
MoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntax public static IEnumerable<int> Random(
Random rand
)
Public Shared Function Random (
rand As Random
) As IEnumerable(Of Integer)
public:
static IEnumerable<int>^ Random(
Random^ rand
)
static member Random :
rand : Random -> IEnumerable<int>
Parameters
- rand
- Type: SystemRandom
Random generator used to produce random numbers
Return Value
Type:
IEnumerableInt32An infinite sequence of random integers
Exceptions See Also