Go to the first, previous, next, last section, table of contents.


Random numbers

Author(s): Daniel Cabeza.

Version: 1.5#118 (2000/4/19, 18:13:43 CEST)

Version of last change: 1.5#26 (1999/12/29, 15:7:59 CET)

This module provides predicates for generating pseudo-random numbers

Usage and interface (random)

Documentation on exports (random)

PREDICATE: random/1:

random(Number)

Number is a (pseudo-) random number in the range [0.0,1.0]

PREDICATE: random/3:

random(Low,Up,Number)

Number is a (pseudo-) random number in the range [Low, Up]

Usage 1: random(+int,+int,-(int))

PREDICATE: srandom/1:

srandom(Seed)

Changes the sequence of pseudo-random numbers according to Seed. The stating sequence of numbers generated can be duplicated by calling the predicate with Seed unbound (the sequence depends on the OS).


Go to the first, previous, next, last section, table of contents.