[Issue 4851] Three suggestions for std.random
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 23 05:24:38 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4851
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|andrei at erdani.com |nobody at puremagic.com
--- Comment #4 from bearophile_hugs at eml.cc 2013-02-23 05:24:37 PST ---
(In reply to comment #3)
> 3. choice can be expressed via
> auto choice = () => randomSample(r, 1, r.length).front;
That looks bad and it's error prone. It's not a replacement for choice() (and
you have missed the input argument r).
> Missing piece is randomCover with a default RandomGen.
Right.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list