More bug fixes, more functions, etc

GetRandNumber() has been updated to use the % operator.