test in and out for random_divide