kts.RandomChance – generate a random boolean value
result = kts.RandomChance(probability)
The probability
should be a number between 0 and 1. This function will return true
with the given probability, or false
otherwise.
Returns a boolean as described above.
An error is raised if the input is not a number.
(If the input is a number outside the range 0 to 1, then this does not cause an error, instead the number is adjusted into the correct range and then the function continues normally.)