.chance()

Description

Chance takes an input from 0 to 100 describing the percentage chance that it will return true

Parameters

Invabs takes no parameters

Usage On Numbers

log 50.chance()
// a 50% chance that it will return true

log 25.chance()
// a 25% chance that it will return true

Last updated