Hello,
Steven Lionel wrote:
>
> David R. Leal Valmana wrote:
>
<snip original question>
>
> Yes - you are setting the seed to the same value each time. Also, most
> implementations use a fixed initial value for the random number seed or if
> you call RANDOM_SEED with no arguments. Some implementations (such as
> Digital's) will set the seed to a time-based value if you call RANDOM_SEED
> with no arguments, but this is implementation-dependent behavior.
This can make debugging difficult if a particular series of RN's
takes your code down a path which uncovers a problem- be sure to
print out the seed used (via the get= argument) so you can reproduce
a specific run.
>
> If you want different values on each run, you will have to set the seed to
> something that changes each run - a seed based on the time of day is
> popular.
Agreed, (may be a problem if you're a _very_ punctual person
of _very_ fixed habits ;-).
>
> Steve Lionel mailto:[log in to unmask]
<snip sig>
--
Cheers!
Dan Nagle [log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|