ThreadSafeRandomInstance Property

Gets a ThreadSafeRandom instance that can be used from any threads concurrently.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
C#
public static ThreadSafeRandom Instance { get; }

Property Value

ThreadSafeRandom

Remarks

  Note

This property returns a ThreadSafeRandom instance, which generates pseudo random numbers using FastRandom internally. To produce cryptographically secure random numbers use the Create(FuncRandom) method instead, and initialize it by a delegate, which returns SecureRandom instances.

See Also