std.random.uniform for enums
Meta
jared771 at gmail.com
Wed Feb 12 19:09:37 PST 2014
On Thursday, 13 February 2014 at 02:52:44 UTC, Anton wrote:
> 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.
Huh, disregard me. I didn't know there was a function for that.
More information about the Digitalmars-d-learn
mailing list