randint()
) to broadcast inputsdirichlet()
)standard_gamma()
) for both floats and
doubles. The gamma generator uses a rejection sampler that
depends on random double, normal and/or exponential values.In [1]: import numpy as np
In [2]: import randomstate as rs
In [3]: rs.seed(23456)
In [4]: rs.standard_gamma(2, size=3, method='zig') # New method
Out[4]: array([2.72136867, 2.17323252, 2.16020074])
In [5]: rs.standard_gamma(2, size=3, method='inv') # Old method