https://issues.dlang.org/show_bug.cgi?id=11597
Seb <greensunn...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greensunn...@gmail.com --- Comment #4 from Seb <greensunn...@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 --