Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from collections import Counter
import random
a = ['r'] * 99 + ['w']
b = ['w'] * 99 + ['r']
t = [a,b]
def f():
return random.choice(random.choice(t))
Counter(f() for x in range(100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment