Changed JS random number generator function name to camelcase