[Issue 11597] Speed up std.random.dice
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 31 15:26:52 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=11597
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greensunny12 at gmail.com
--- Comment #4 from Seb <greensunny12 at gmail.com> ---
> See Vose's Alias Method:
Here's my implementation for mir:
https://github.com/libmir/mir/blob/da76cf406d06957e472b9ba90b4c90b917480cb9/source/mir/random/discrete.d
tl;dr:
- std.random's methods should be available as Generators / "Variables"
- Until std.random isn't rewritten it probably doesn't make sense to patch it
partially
There's also:
https://issues.dlang.org/show_bug.cgi?id=5849
--
More information about the Digitalmars-d-bugs
mailing list