How many variations do you need?
Would just a few say 4 or 5 work for you?
If you can get away with this you can just make a few pages with the varients and use a random jump to a page to get to the pages.
Not ideal but significantly easier than trying to generate exactly what you are thinking of.
http://www.courselab.com/db/cle/A5E7A01F3550F716C32576340032D854/main_id/DEB1AE8A7B1B3576C3256FCF0055974C/extended/1/sid/did/forum.html
How many variations do you need?
Would just a few say 4 or 5 work for you?
If you can get away with this you can just make a few pages with the varients and use a random jump to a page to get to the pages.
Not ideal but significantly easier than trying to generate exactly what you are thinking of.
http://www.courselab.com/db/cle/A5E7A01F3550F716C32576340032D854/main_id/DEB1AE8A7B1B3576C3256FCF0055974C/extended/1/sid/did/forum.html