change library(random) to use O'Keefe code.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@80 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2001-06-11 20:20:36 +00:00
parent 96ae69e8d6
commit 90c92979c6
9 changed files with 2718 additions and 6046 deletions

View File

@@ -6889,9 +6889,9 @@ Creates a new list with the same elements as @var{Queue}.
@cindex queue
The following random number operations are included with the
@code{use_module(library(random))} command. The random numbers packages
uses the Operating underlying random number generator, so random numbers
are not necessarily repeatable.
@code{use_module(library(random))} command. Since Yap-4.3.19 Yap uses
the O'Keefe public-domain algorithm, based on the "Applied Statistics"
algorithm AS183.
@table @code
@@ -6922,14 +6922,14 @@ integers then @var{NUMBER} will also be an integer, otherwise
@syindex randseq/3
@cnindex randseq/3
Unify @var{Numbers} with a list of @var{LENGTH} unique random integers
in the range @code{[1<EFBFBD>...@var{HIGH})}.
in the range @code{[1<EFBFBD>...@var{MAX})}.
@item randset(+@var{LENGTH}, +@var{MAX}, -@var{Numbers})
@findex randset/3
@syindex randset/3
@cnindex randset/3
Unify @var{Numbers} with an ordered list of @var{LENGTH} unique random
integers in the range @code{[1<EFBFBD>...@var{HIGH})}.
integers in the range @code{[1<EFBFBD>...@var{MAX})}.
@item setrand(+@var{Key})
@findex setrand/1