Joseph Simone Discussion #2

Section 1

A random seed specifies the start point when a computer generates a random number sequence. Algorithms behind computer number generation are much more complicated, mimicking randomness much better than I can do here. This is very important not only in programs but in simlations as well because this will enable the reproduce the results of your program in the future.

Section 2

I found this part of the Chapter 3 Lab to be the most rewarding. The code below, really made this first simulation come together nicely

def bike_to_wellesley(state):
"""Move one bike from Olin to Wellesley.
state: bikeshare State object
"""
    if state.olin == 0:
        state.olin_empty += 1
        return
    state.olin -= 1
    state.wellesley += 1
    state.clock += 1

    if state.olin_empty !=0:
        return
    state.t_first_empty = state.clock