November 13, 2020
https://issues.dlang.org/show_bug.cgi?id=21385

          Issue ID: 21385
           Summary: std.random.uniform!T(urng) for integer T disregards
                    urng.min and urng.max when producing the result so it
                    may not actually be uniform
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody@puremagic.com
          Reporter: n8sh.secondary@hotmail.com

std.random.uniform!T(urng) for integer T disregards urng.min and urng.max when producing the result so it may not actually be uniform. This is not a problem for MersenneTwisterEngine or XorshiftEngine but it is a problem for LinearCongruentialEngine and potentially for user-defined generators.

--