std.random.uniform for enums

Anton vizardx at gmail.com
Wed Feb 12 18:52:43 PST 2014


I guess I'm mostly confused because the description for one of 
the templates of std.random.uniform says "Returns a uniformly 
selected member of enum E. If no random number generator is 
passed, uses the default rndGen." So I was wondering why that 
functionality didn't seem to work as I thought it would.

Otherwise, thanks for the workarounds.


More information about the Digitalmars-d-learn mailing list