First run
npm install prdrng --save
import PrdRng from 'prdrng';
let event = new PrdRng(25);
// Run event as many times as necessary.
// These probabilities average out so that,
// over a moderate period of time, the success rate will be 25%.
for (let i = 0; i < 1000; i++)
let success = event.run();