'Choose a new seed.'

def choose_new_seed(self):

    if (self.rerandomize == RANDOMIZATION.NEVER):
        self.seed = 1
    elif ((self.rerandomize == RANDOMIZATION.PER_STUDENT) and hasattr(self.runtime, 'seed')):
        self.seed = randomization_bin(self.runtime.seed, unicode(self.location).encode('utf-8'))
    else:
        self.seed = struct.unpack('i', os.urandom(4))[0]
        self.seed %= MAX_RANDOMIZATION_BINS
