random/3

Jan Burse <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hi,

Just comparing random/3 across different systems.

GNU Prolog 1.4.2: float arguments give integer result:

	?- random(0.0,999.0,X).
	X = 349


SWI-Prolog 6.3.6: float arguments give float result:

	?- random(0.0,999.0,X).
	X = 741.3122108222138.

Bug or feature.

Bye
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.