public double GetGaussianDouble()
        {
            // http://stackoverflow.com/questions/218060/random-gaussian-variables
            // Box-Muller transform
            double u1            = ImSoRandom.NextDouble();
            double u2            = ImSoRandom.NextDouble();
            double randStdNormal = Math.Sqrt(-2.0 * Math.Log(u1)) * Math.Sin(2.0 * Math.PI * u2);
            double randNormal    = this.Mean + this.StandardDeviation * randStdNormal;

            return(randNormal);
        }
Ejemplo n.º 2
0
 public object SelectData()
 {
     return((decimal)ImSoRandom.NextDouble());
 }
 public object SelectData()
 {
     return(ImSoRandom.NextDouble() * (Upper - Lower) + Lower);
 }
Ejemplo n.º 4
0
        public object SelectData()
        {
            double result = ImSoRandom.NextDouble();

            return((Single)result);
        }