Creates a ThreadSafeRandom instance using the specified seed value.
See the Remarks section for details.
See the Remarks section for details.
Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax
Parameters
- seed
- Type: SystemInt32
A number used to calculate a starting value for the pseudo-random number sequence.
Return Value
Type: ThreadSafeRandomA ThreadSafeRandom instance using the specified seed value.
Remarks
Make sure the created instance is disposed if it is not used anymore.
![]() |
---|
Please note that two generated sequences can be different even with the same starting seed if the created instance is accessed from different threads. |
See Also