added random number generation, but it only generates once ( at the start of the app ).