changed random.js to pass test