rand_int, rand_double, random starting point