Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Created August 15, 2020 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanjensengrey/0cb3e1af916506bc171820a1a7c8bc01 to your computer and use it in GitHub Desktop.
Save seanjensengrey/0cb3e1af916506bc171820a1a7c8bc01 to your computer and use it in GitHub Desktop.
# https://stopa.io/post/243
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