Random Extensions.As Parallel Method
Returns a thread-safe version of this random number generator.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A Random object that generates the same values as random, but is thread-safe.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static ParallelRandom AsParallel(
this Random random
)
Parameters
- random Random
- A random number generator.
Return Value
ParallelRandomA Random object that generates the same values as random, but is thread-safe.