Metronome

Added METRONOME function to allow for random number generation