Examples for probable.js. You can click on the buttons here or if you really want to dig in, you can open the console in Web Inspector and mess with the probable object.
probable.roll
Outcome
probable.rollDie
Outcome
probable.pickFromArray
Outcome
probable.createRangeTable
rangeTableA was created via createRangeTable with these parameters:
[
  [[0, 80], 'Orc'],
  [[81, 95], 'Gelatinous Cube'],
  [[96, 99], 'Displacer Beast']
]
Outcome
probable.createRangeTableFromDict
rangeTableB was created from createRangeTableFromDict with these parameters:
{
  'Nothing happens.': 30,
  'A bag of gold drops out.': 20,
  'Poison gas is unleashed.': 5,
  '100 demogorgons surround you.': 4,
  'Whatever gender you consider yourself, you now consider yourself the opposite of what you considered that original gender.': 2,
  'Time\'s flow reverses.': 1
}
Outcome