syntax improvement on random