Started to implement random number generation