Fixed _getRandInt() and added macro explanations