Javascript Math chanceRoll(chance)
Math.chanceRoll = (chance) => { if (chance === undefined) { chance = 50; } return chance > 0 && (Math.random() * 100 <= chance); }