exercise 3.5
exer 3.6 random numbers which can have their seed reset