/// <summary> /// Initializes a new instance of the <see cref="UniformOneGenerator"/> class. /// </summary> /// /// <param name="seed">Seed value to initialize random numbers generator.</param> /// public UniformOneGenerator( int seed ) { rand = new ThreadSafeRandom( seed ); }
/// <summary> /// Set seed of the random numbers generator. /// </summary> /// /// <param name="seed">Seed value.</param> /// /// <remarks>Resets random numbers generator initializing it with /// specified seed value.</remarks> /// public void SetSeed( int seed ) { rand = new ThreadSafeRandom( seed ); }
/// <summary> /// Initializes a new instance of the <see cref="UniformOneGenerator"/> class. /// </summary> /// /// <remarks>Initializes random numbers generator with zero seed.</remarks> /// public UniformOneGenerator( ) { rand = new ThreadSafeRandom( 0 ); }