fix randomVal to be actually random. Fixes habitrpg/habitrpg#2176