ThreadSafeRandomSource.Instance Property

Provides a globally accessible, thread-safe instance of the random number generator.

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.3.0
C#
public static ThreadSafeRandomSource Instance { get; }

Property Value

ThreadSafeRandomSource

Remarks

This instance is intended for use in scenarios where multiple threads require access to a shared random number generator. Using this instance helps avoid issues related to thread safety and ensures consistent random number generation across threads.

See Also