Hi,
I have a problem with random/1. The documentation states that "the seed
of this random generator is determined by the system clock when
SWI-Prolog was started". However, whenever I start and restart
SWI-Prolog, and ask random(X), I always get the same random sequence
(starting with 0.233193). My suspicion is that either the seed isn't
set, or it isn't used by random/1.
I use SWI-Prolog 5.6.54 and run it on Windows XP. A colleague uses
SWI-Prolog 5.6.50 on XP and gets exactly the same random sequence.
Any ideas why this is?
Thanks,
Ivo Swartjes
------------
For further info, please visit
http://www.swi-prolog.org/To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>"
in its body to
majordomo@...