added get_random_point method