A makeshift solution to the genRandScript.m hang problem