Added seeding for random, which allows reproduction of simulations