[Issue 5849] std.random.dice is better as a range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 29 15:37:53 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5849
--- Comment #2 from bearophile_hugs at eml.cc 2011-12-29 15:37:50 PST ---
Created an attachment (id=1060)
First draft of a fast dice range
D code adapted from Java code:
http://www.keithschwarz.com/interesting/code/?dir=alias-method
http://www.keithschwarz.com/darts-dice-coins/
http://www.reddit.com/r/programming/comments/nu78s/darts_dice_and_coins_a_beautiful_algorithm_for/
--
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