[Issue 21385] New: 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
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Nov 13 02:47:40 UTC 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 at puremagic.com
          Reporter: n8sh.secondary at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list