Fixed test for random()