Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GaussianGenerator"/> class.
        /// </summary>
        ///
        /// <param name="mean">Mean value.</param>
        /// <param name="stdDev">Standard deviation value.</param>
        /// <param name="seed">Seed value to initialize random numbers generator.</param>
        ///
        public GaussianGenerator(float mean, float stdDev, int seed)
        {
            this.mean   = mean;
            this.stdDev = stdDev;

            rand = new StandardGenerator(seed);
        }
Exemple #2
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 StandardGenerator(seed);
 }