If I run this code on R
But if I run on Julia
I guess they use different methods to generate random numbers, though I thought both are using Mersenne-Twister.
How can I configure Julia or R to use the same method than the other one?
Any alternative or easy method?
I need it to further compare more complex tasks.
I have also tried
rng = MersenneTwister(123)
but the output it’s still different.