Generate true or false boolean with a probability

Viewed 1845

I have a percentage, for example 40%. Id like to "throw a dice" and the outcome is based on the probability. (for example there is 40% chance it's going to be true).

4 Answers
Related