simplify random.js tests