Create utils.js

random and randomFromArray functions