The problem consist in using a random number on my prolog script, i have the next code on the prolog file script.pl:
main:-
get_time(TS),
set_random(TS),
random(-1000.0, 1000.0, X),
write('Random number: '),
write(X),
nl.
I execute the next command line on console:
swipl -s script.pl -g 'main' -t 'halt(1)'
And the output is:
% library(swi_hooks) compiled into pce_swi_hooks 0.00 sec, 2,224 bytes
% /home/script.pl compiled 0.01 sec, 704 bytes
Random number: -533.6139326519667
I can run the same command several times and i have the same output every time. I try work without change the random seed and the problem continues.
I'm working on Ubuntu 12.04 32 bits.
Help please!