public async Task TestLogNormalDistribution01()
        {
            using var rng = new MultiThreadedRng();
            var dist = new FastRng.Float.Distributions.LogNormalS1M0(rng);
            var fra  = new FrequencyAnalysis();

            for (var n = 0; n < 100_000; n++)
            {
                fra.CountThis(await dist.NextNumber());
            }

            var result = fra.NormalizeAndPlotEvents(TestContext.WriteLine);

            Assert.That(result[0], Is.EqualTo(0.001505531f).Within(0.003f));
            Assert.That(result[1], Is.EqualTo(0.014408709f).Within(0.01f));
            Assert.That(result[2], Is.EqualTo(0.043222256f).Within(0.02f));

            Assert.That(result[21], Is.EqualTo(0.876212056f).Within(0.15f));
            Assert.That(result[22], Is.EqualTo(0.895582226f).Within(0.15f));
            Assert.That(result[23], Is.EqualTo(0.912837250f).Within(0.15f));

            Assert.That(result[50], Is.EqualTo(0.948062005f).Within(0.2f));

            Assert.That(result[75], Is.EqualTo(0.768584762f).Within(0.089f));
            Assert.That(result[85], Is.EqualTo(0.697303612f).Within(0.089f));
            Assert.That(result[90], Is.EqualTo(0.663570581f).Within(0.089f));

            Assert.That(result[97], Is.EqualTo(0.618792767f).Within(0.089f));
            Assert.That(result[98], Is.EqualTo(0.612636410f).Within(0.089f));
            Assert.That(result[99], Is.EqualTo(0.606540679f).Within(0.089f));
        }
 public async Task TestLogNormalGeneratorWithRange01()
 {
     using var rng = new MultiThreadedRng();
     var dist    = new FastRng.Float.Distributions.LogNormalS1M0(rng);
     var samples = new float[1_000];