Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 12
    that should be the same formula for obtaining random loot in Diablo :-) Commented May 29, 2012 at 9:12
  • 1
    @Jalayn: Actually, the idea for the interval solution in my answer below comes from what I remember about combat tables in World of Warcraft. :-D Commented May 29, 2012 at 10:30
  • See also Commented Sep 26, 2012 at 0:04
  • gamedev.tutsplus.com/tutorials/implementation/… Commented May 27, 2013 at 11:49
  • I've implemented several simple weighted random algorithms. Let me know if you have questions. Commented Jan 25, 2015 at 20:27