implemented get_random_float and circle_intersects