created randomInt() and output in main

still plagued by errors