'Check seed()- and random()-like functions.'

def _check_random_seed(self, seedfunc, randomfunc):

    r = np.random.RandomState()
    for i in [0, 1, 125, ((2 ** 32) - 1)]:
        r.seed(np.uint32(i))
        seedfunc(i)
        for j in range((N + 10)):
            self.assertPreciseEqual(randomfunc(), r.uniform(0.0, 1.0))
