Skip to content
Prev 315984 / 398506 Next

How to construct a valid seed for l'Ecuyer's method with given .Random.seed?

Marius,

I looked it up in the original L'Ecuyer's paper: The seed must be larger 
than 0. Thus, the function defines the seed variable as unsigned long 
integer. You're passing a negative number, so I think there is some 
overflow going on.

The internal L'Ecuyer RNG is a modification of the original one (and I'm 
not familiar with it), but they seem to relax that restriction.

Hana
On 1/23/13 1:01 AM, Marius Hofert wrote: