The GAN files started out simple. Just a short text file of the map commands that should go into the .map. The only thing it did originally was find a location, and paste that file in on that number.
Im afraid that I made it go nuts. The random name files. And using the @ sign for a random. So instead of having the province always show up as "#landname Dragons Den" I could set a random of 3 names for "Dragons Den" "Draco Lair" "Here There Be" by saying
@3 landname
"Dragons Den"
"Draco Lair"
"Here There Be"
Once that worked it was obvious that any command could be done the same. You can create a small variety in the number of units, the type, the equipment, etc instead of creating a dozen copies of the file.
Surprise!
You can even have a special prize show up only once in 5 times by something like
@5 additem
"Enchanted Shield"
"Enchanted Shield"
"Enchanted Shield"
"Enchanted Shield"
"Sun Shield"