Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UniformGenerator"/> class.
        /// </summary>
        ///
        /// <param name="range">Random numbers range.</param>
        /// <param name="seed">Seed value to initialize random numbers generator.</param>
        ///
        public UniformGenerator(Range range, int seed)
        {
            rand = new UniformOneGenerator(seed);

            min    = range.Min;
            length = range.Length;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UniformGenerator"/> class.
        /// </summary>
        /// 
        /// <param name="range">Random numbers range.</param>
        /// <param name="seed">Seed value to initialize random numbers generator.</param>
        /// 
        public UniformGenerator(DoubleRange range, int seed)
        {
            rand = new UniformOneGenerator(seed);

            min = range.Min;
            length = range.Length;
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardGenerator"/> class.
 /// </summary>
 ///
 /// <param name="seed">Seed value to initialize random numbers generator.</param>
 ///
 public StandardGenerator(int seed)
 {
     rand = new UniformOneGenerator(seed);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardGenerator"/> class.
 /// </summary>
 ///
 public StandardGenerator()
 {
     rand = new UniformOneGenerator();
 }
Example #5
0
 /// <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 UniformOneGenerator(seed);
     useSecond = false;
 }
Example #6
0
 /// <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 UniformOneGenerator(seed);
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardGenerator"/> class.
 /// </summary>
 /// 
 /// <param name="seed">Seed value to initialize random numbers generator.</param>
 /// 
 public StandardGenerator(int seed)
 {
     rand = new UniformOneGenerator(seed);
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StandardGenerator"/> class.
 /// </summary>
 /// 
 public StandardGenerator()
 {
     rand = new UniformOneGenerator();
 }
Example #9
0
 /// <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 UniformOneGenerator(seed);
     useSecond = false;
 }
Example #10
0
 /// <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 UniformOneGenerator(seed);
 }