Example #1
0
        NextBoundedGaussian(this System.Random r, float min, float max)
        {
            var mean  = (min + max) / 2;
            var stdev = (max - mean) / 3;

            return(r.NextGaussianDouble() * stdev + mean);
        }