random int function; save to file function

random int can be used to determine the keys
format for saving to the file is:
<key #> <time in long provided by MidiEvent> <Note Letter> <Command: ON or OFF>