Randomize each screen wipe

Use rand() instead of M_Random() randomizes each screen wipe. Code
refactored as well.