A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://morelinq.github.io/3.0/ref/api/html/M_MoreLinq_MoreEnumerable_RandomDouble.htm below:

MoreEnumerableRandomDouble Method

Returns an infinite sequence of random double values between 0.0 and 1.0

Namespace:  MoreLinq
Assembly:

MoreLinq (in MoreLinq.dll) Version: 3.0.0

Syntax
public static IEnumerable<double> RandomDouble()
Public Shared Function RandomDouble As IEnumerable(Of Double)
public:
static IEnumerable<double>^ RandomDouble()
static member RandomDouble : unit -> IEnumerable<float> 
Return Value

Type:

IEnumerableDouble

An infinite sequence of random doubles

Remarks

The implementation internally uses a shared, thread-local instance of

Random

to generate a random number on each iteration. The actual

Random

instance 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

Random

instances will be involved in the generation of the sequence of random numbers. Because the

Random

instance is shared, if multiple sequences are generated on the same thread, the order of enumeration affects the resulting sequences.

See Also

RetroSearch 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