just make this a while True, and use break when you currently set to_do_random to False