Update rand()