[R] LCG with modulo 2^30
eraheem at hotmail.com
Sun Feb 29 04:27:27 CET 2004
I can't run a function which generates random numbrers using linear
congruential generator. My multiplier is a=5+8^6, increment is b=1 and
modulo is m=2^30.
the code I have written works for modulo upto m=2^28.
For m= 2^29 , it says, can not allocate memory for the vector or something
For m= 2^31 or more, its says the argument "for i in 1:m " is too large in
I tried to increase the memory size but it did not work.
Any help will be appreciated.
More information about the R-help