Implements a random stage setting script.