fork download
  1. # your code goes here
  2. import numpy as np
  3. import random
  4. probs = [True] * 5 + [False] * 5
  5. random.shuffle(probs)
  6. for i in range(10):
  7. if random.choice(probs):
  8. print('True')
  9. else:
  10. print('False')
Success #stdin #stdout 0.07s 23368KB
stdin
Standard input is empty
stdout
True
True
True
False
True
False
False
False
False
False