def METHOD_NAME(t):
    bitgen = t(seed=42)
    gen = num.random.Generator(bitgen)
    alpha = 2.0
    beta = 5.0
    a = gen.beta(alpha, beta, size=(1024 * 1024,), dtype=np.float32)
    theo_mean = alpha / (alpha + beta)
    theo_std = np.sqrt(alpha * beta / (alpha + beta + 1.0)) / (alpha + beta)
    assert_distribution(a, theo_mean, theo_std)