Added a function to help create random numbers