[Issue 9106] Rename std.random.randomShuffle as std.random.shuffle and small usage change

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 22 11:10:35 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=9106



--- Comment #11 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2014-03-22 11:10:28 PDT ---
(In reply to comment #10)
> Is randomSample a documented alias?

"Is"?  I haven't even made the patch yet :-P  But yes, it will be.

> Then I suggest to fix the API of dice(), it should be a range. It means you
> give your distribution to a function/struct, and then you have a range that
> yields values efficiently with that distribution.

Already there. ;-)
https://github.com/WebDrake/std.random2/blob/master/std/random2/distribution.d#L124

But please, let's try and keep this issue focused -- we can make other issues
for the other areas of concern, right now we're talking about renames.

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


More information about the Digitalmars-d-bugs mailing list