add user
update the function of random action