Added Random Generator

Added in function that generates a random number