Random level generator help!?

I don't understand how the random level generator works. I tried using the code the .zip files made in the forums, but it didn't work. There was no variables for it or anything
If some one could go into detail about how to exactly do it, I'm sure ALOT of people would appreciate it 

