@cluhmann Thank you for such a rapid response! This is exactly what I needed. To be frank, I looked into this earlier today but just couldn’t get it to work, and the reason is as follows.
I followed the examples from Theno-pymc “Using Random Numbers” documentation but just couldn’t get imports right (I have theano-pymc 1.1.2 installed with PyMC v3.4.11). The link you provided for Aesara “Using Random Numbers” section seem to be up-to-date and it works OK.
Thanks again, I have been struggling with this for a few days and now I can see some light in the tunnel ![]()
For those still a bit confused, for my theano-pymc 1.1.2 below code does work (modified from Aesara docs):
from theano.tensor.random.utils import RandomStream
from theano import function
and this doesn’t work (directly from theano-pymc docs):
from theano.tensor.shared_randomstreams import RandomStreams
from theano import function