Dan Ryan
08-29-2005, 02:50 PM
I am checking GASDEV and noticed if I call the
routine in a simple loop, that the seed value repeat
in groups of two. The actual random deviates
from GASDEV look great, but I am worried that the
repeating seeds spell trouble.
If I use RAN1 in the same loop (simply replacing
GASDEV), the seeds change from one call to the
next and the deviates generated look great.
is is the case?
Is this behaviour normal for GASDEV? If so why?
Best Wishes and Thanks in Advance.
Dan
PS. I am new to using NR, and I am impressed with the
ease with which they can be incorporated into a program
and the discussion in the NR docs. Keep up the great
work.
routine in a simple loop, that the seed value repeat
in groups of two. The actual random deviates
from GASDEV look great, but I am worried that the
repeating seeds spell trouble.
If I use RAN1 in the same loop (simply replacing
GASDEV), the seeds change from one call to the
next and the deviates generated look great.
is is the case?
Is this behaviour normal for GASDEV? If so why?
Best Wishes and Thanks in Advance.
Dan
PS. I am new to using NR, and I am impressed with the
ease with which they can be incorporated into a program
and the discussion in the NR docs. Keep up the great
work.