/// <summary> /// Initializes a new instance of the <see cref="WH2006"/> class using /// a seed based on time and unique GUIDs. /// </summary> /// <param name="threadSafe">if set to <c>true</c> , the class is thread safe.</param> public WH2006(bool threadSafe) : this(RandomSeed.Robust(), threadSafe) { }
/// <summary> /// Initializes a new instance of the <see cref="WH2006"/> class using /// a seed based on time and unique GUIDs. /// </summary> public WH2006() : this(RandomSeed.Robust()) { }
/// <summary> /// Initializes a new instance of the <see cref="RandomSource"/> class. /// </summary> /// <param name="threadSafe">if set to <c>true</c> , the class is thread safe.</param> /// <remarks>Thread safe instances are two and half times slower than non-thread /// safe classes.</remarks> protected RandomSource(bool threadSafe) : base(RandomSeed.Robust()) { _threadSafe = threadSafe; }
/// <summary> /// Initializes a new instance of the <see cref="RandomSource"/> class using /// the value of true to set whether /// the instance is thread safe or not. /// </summary> protected RandomSource() : base(RandomSeed.Robust()) { _threadSafe = true; }
/// <summary> /// Initializes a new instance of the <see cref="MersenneTwister"/> class using /// a seed based on time and unique GUIDs. /// </summary> /// <param name="threadSafe">if set to <c>true</c> , the class is thread safe.</param> public MersenneTwister(bool threadSafe) : this(RandomSeed.Robust(), threadSafe) { }
/// <summary> /// Initializes a new instance of the <see cref="MersenneTwister"/> class using /// a seed based on time and unique GUIDs. /// </summary> /// <remarks>If the seed value is zero, it is set to one. Uses the /// value of true to /// set whether the instance is thread safe.</remarks> public MersenneTwister() : this(RandomSeed.Robust()) { }