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:


Random module:
*Random Binary Decision

Table Of Contents
8Random module
31Set
166Gzip