Allow generating pseudo random numbers

Given a certain seed we would always get the same sequence of random numbers.