Get Random Boolean
Get a random boolean value (true or false).
Category | Random |
Author | Pol Gubau |
Since | 1.0.4 |
Last Updated | 2025-03-17 |
Type | Sync |
Compatibility | Universal |
Example
Input
getRandomBoolean()
Output:
true
Return
A random boolean value.
Type: boolean
Notes
The probability of true and false is 50% each.
Tags
- random
- boolean