lorubenet
07-10-2007, 04:47 AM
Hi!
I am using ran2 in my MonteCarlo simulation using the NR in C (though my program is in C++). I'd like to know whether the algorithm is just implemented to work on a 32bit machine or if it performs as good in a 64-bit machine (if not, which random number generator should I use?). I'm worried about the issues of "long" being 4 or 8 bytes.
Thanks,
Ruben
I am using ran2 in my MonteCarlo simulation using the NR in C (though my program is in C++). I'd like to know whether the algorithm is just implemented to work on a 32bit machine or if it performs as good in a 64-bit machine (if not, which random number generator should I use?). I'm worried about the issues of "long" being 4 or 8 bytes.
Thanks,
Ruben