What does np.random.seed(2) do?

Note there are other randomisers in play for other libraries in use that you may want to set to constrain results further. Eg See Accumulating Gradients - #28 by kcturgutlu