Update: renamed rand to rand_num