Adding a seed to generate random numbers