Adding random and format functions to utils.js