pymc.at_rng#

pymc.at_rng(random_seed=None)[source]#

Get the package-level random number generator or new with specified seed.

Parameters
random_seed: int

If not None returns new pytensor random generator without replacing package global one

Returns
pytensor.tensor.random.utils.RandomStream instance

pytensor.tensor.random.utils.RandomStream instance passed to the most recent call of set_at_rng