[Issue 4851] Three suggestions for std.random
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 23 05:13:08 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4851
jens.k.mueller at gmx.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jens.k.mueller at gmx.de
--- Comment #3 from jens.k.mueller at gmx.de 2013-02-23 05:12:55 PST ---
How much of this request is still valid?
>From the documentation I find that
1. randomShuffle has default random generator
2. same for randomSample via overloads
3. choice can be expressed via
auto choice = () => randomSample(r, 1, r.length).front;
Missing piece is randomCover with a default RandomGen.
Is this correct?
--
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