Just added: Algorithms you can run and practice
Python
def lcg(seed):
    state = seed
    while True:
        state = (state * 1103515245 + 12345) % (2**31)
        yield state / (2**31)

# Write simulate_draws(bag, n, seed): draw from bag WITH replacement n times,
# using lcg(seed) for randomness - next(gen) gives r in [0, 1), and
# bag[int(r * len(bag))] picks one item. Return {color: count}.
def simulate_draws(bag, n, seed):
    pass