In my recent work with Gibbs sampling, I\'ve been making great use of the RVar which, in my view, provides a near ideal interface to random number generation. Sadl
Gibbs sampling
It's probably not a good idea to do this due to inherently sequential nature of PRNGs. Instead, you might want to transition your code as follows:
main