Random Int generator fresh out of Stackoverflow