chances.js


Chance table, input a list with percentages . When the js instance is banged it will output a random index number of that list according to the given percentages. (10 80 5 5 will have 80% chance to output 1)