This is so wrong! Want to leave a logic bomb in program? Hide this in a header file somewhere and watch the dev team go crazy trying to track down the problems it creates.
#define sizeof(x) (rand() % sizeof(x) + 1)
Filed away for use someday when I’m feeling eeeeeeeevil.