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

           Summary: std.random.uniform does not work for a range of
                    characters
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: pelle.mans...@gmail.com


--- Comment #0 from Pelle M´┐Żnsson <pelle.mans...@gmail.com> 2010-05-10 10:45:34 
PDT ---
import std.random;

void main() {
    uniform('a', 'z');
}

results in

phobos/std/random.d(659): Error: cannot implicitly convert expression
(cast(int)b - 1) of type int to char

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to