chance
random.chance()
Returns true
if it occurs (based on chance), false
otherwise.
random.chance(percentage)
percentage
Number
Chance expressed as a percentage (from 0 to 100).
random.chance()
Returns true
if it occurs (based on chance), false
otherwise.
random.chance(percentage)
percentage
Number
Chance expressed as a percentage (from 0 to 100).