Choosing objects probabilistically in JavaScript — Part I
Samrat Sengupta and Arnab Majumdar
A common situation in many programs that use random selection is to be able to choose an object out of a set. In some cases such a choice could be based on probabilities…