KGy SOFT

ThreadSafeRandomCreate Method (Int32)

KGy SOFT Core Libraries Help
Creates a ThreadSafeRandom instance using the specified seed value.
See the Remarks section for details.

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax

public static ThreadSafeRandom Create(
	int seed
)

Parameters

seed
Type: SystemInt32
A number used to calculate a starting value for the pseudo-random number sequence.

Return Value

Type: ThreadSafeRandom
A ThreadSafeRandom instance using the specified seed value.
Remarks

Make sure the created instance is disposed if it is not used anymore.

Note Note
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

Reference