Added random-do macro.