Summary: std.random.uniform(bound,uint,uint)(uint.min,uint.max)
           Product: D
           Version: 2.039
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from BCS <> 2010-02-08 23:56:21 PST 
The generic uniform random number generator fails for the "any uint" case by
throwing a FP exception. moving either bound in by one fixes the problem.

Also, I think there should be a convenience function for that case:

T uniform(T)(){ return uniform!("[]",T,T)(T.min,T.max); }

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to