Random Binary Decision

suggest change
import random

probability = 0.3

if random.random() < probability:
    print("Decision with probability 0.3")
else:
    print("Decision with probability 0.7")

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents