Skip to content

Instantly share code, notes, and snippets.

View tedchou12's full-sized avatar

Ted tedchou12

View GitHub Profile
@tedchou12
tedchou12 / three_color_marbles.py
Last active January 25, 2022 14:28
three color marbles sampling
import random
combinations = ['B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y']
simulations = 500000
results = []
counter = 0
while counter < simulations :
#start sampling
sample = random.sample(combinations, k=12)