Returns an infinite sequence of random integers using the standard .NET random number generator.
Namespace: MoreLinqMoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static IEnumerable<int> Random()
Public Shared Function Random As IEnumerable(Of Integer)
public: static IEnumerable<int>^ Random()
static member Random : unit -> IEnumerable<int>Return Value
Type:
IEnumerableInt32An infinite sequence of random integers
RemarksThe implementation internally uses a shared, thread-local instance of
Randomto generate a random number on each iteration. The actual
Randominstance used therefore will depend on the thread on which a single iteration is taking place; that is the call to
MoveNext. If the overall iteration takes place on different threads (e.g. via asynchronous awaits completing on different threads) then various different
Randominstances will be involved in the generation of the sequence of random numbers. Because the
Randominstance is shared, if multiple sequences are generated on the same thread, the order of enumeration affects the resulting sequences.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4