Changes to random.js