I 'm trying to debug some code by matching outputs from exposed stan and r functions. And as this involves generating a random number, I’m trying to set the random seed before calling each function.
A toy example - given attached stan file: mvrnorm_rng.stan (263 Bytes)
but the Stan mvnorm_rng and the MASS implementation are almost for sure different - they will never give you the same… and in addition, the random number generator is also different to my memory.