def METHOD_NAME(self):
    # gh-24266: beta would generate nan when the parameters
    # were subnormal or a small multiple of the smallest normal.
    tiny = np.finfo(1.0).tiny
    x = self.mt19937.beta(tiny/32, tiny/40, size=50)
    assert not np.any(np.isnan(x))