macros and random numbers