Chance()Function
Returns a true or false at a given chance
Values
function Chance(percent: Number): boolean
Parameters
- percent
- A Number which indicates the chance of returning true in percent / 100.
- Defaults to 50.
Returns
- boolean
Example
if (Chance(75)) { console.log("It's the second coming!"); } // Could return: It's the second coming!
Log
JMAC 1c | 05-11-25
Function introduced.