chanceRoll(chance) → {boolean}
Generate a random bool result based on the chance value. Returns true or false based on the chance value (default 50%). For example if you wanted a player to have a 30% chanceof getting a bonus, call chanceRoll(30) - true means the chance passed, false means it failed.
Parameters
Name Type Description chance number The chance of receiving the value. A number between 0 and 100 (effectively 0% to 100%).
Returns
boolean - True if the roll passed, or false