get_random now working for client as well