eval_rand_func()