'Get the random number generator to be shared by responses
of the problem, creating it on the problem if needed.'

def get_rng(self, problem):

    if (not hasattr(problem, '_shared_rng')):
        problem._shared_rng = random.Random(self.context['seed'])
    return problem._shared_rng
