Thread safe version of the Random class.

Namespace:  AForge
Assembly:  AForge (in AForge.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public sealed class ThreadSafeRandom : Random

Remarks

The class inherits the Random and overrides its random numbers generation methods providing thread safety by guarding call to the base class with a lock. See documentation to Random for additional information about the base class.

Inheritance Hierarchy

System..::.Object
  System..::.Random
    AForge..::.ThreadSafeRandom

See Also