macro to randomly select from multiple code paths