Adding a random suffix means that the script should change the way it checks which site it is on, as well as how it selects the new URL. So, for these sites we need to check for a partial match.
But instead of explaining every piece of it, here is a great code .;) This should be a little self-documenting.
Brock adams
source share