Broke out random number into an own method. Added comments.