factor out the server rnd function to use underscore.js _.random(start, end)