Added Randomizer

Added a function that selects a random number.