http://d.puremagic.com/issues/show_bug.cgi?id=2921

           Summary: std.random.uniform doesn't work with char.
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: dsim...@yahoo.com


import std.random, std.stdio;

void main() {
    foreach(i; 0..1_000) {
        write(uniform!"[]"('A', 'Z'));
    }
}


Prints:  All A's.  If 'A' and 'Z' are cast to ubyte, the results look
reasonable.


-- 

Reply via email to