object

fast_random

Portable random number generator predicates. Core predicates originally written by Richard O’Keefe. Based on algorithm AS 183 from Applied Statistics.

Availability:
logtalk_load(random(loader))
Author: Paulo Moura
Version: 3:0:0
Date: 2026-01-25
Compilation flags:
static, context_switching_calls
Extends:
Remarks:
  • Single random number generator: This object provides a faster version of the random library object but does not support being extended to define multiple random number generators.

  • Randomness: Loading this object always initializes the random generator seed to the same value, thus providing a pseudo random number generator. The randomize/1 predicate can be used to initialize the seed with a random value.

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)