public void Gaussian_should_generate_numbers_that_do_not_deviate_too_much() { var sut = new GetRandom(); var generatedValues = new List <double>(); 1000.Times(_ => generatedValues.Add(sut.Gaussian())); // (generatedValues.Max() - generatedValues.Min()).ShouldBe(0); var groupBy = generatedValues.GroupBy(x => (int)(x * 100)).OrderBy(x => x.Key); groupBy.Count().ShouldBe(1000); }