object
random¶
Portable random number generator predicates. Core predicates originally written by Richard O’Keefe. Based on algorithm AS 183 from Applied Statistics.
Author: Paulo Moura
Version: 2.6
Date: 2019/12/1
Compilation flags:
static, context_switching_callsRemarks:
Multiple random number generators: To define multiple random number generators, simply extend this object. The derived objects must send to self the
reset_seed/0message.
Inherited public predicates:
Public predicates¶
reset_seed/0¶
Resets the random generator seed to its default value. Use get_seed/1 and set_seed/1 instead if you need reproducibility.
Compilation flags:
static, synchronizedMode and number of proofs:
reset_seed - onerandomize/1¶
Randomizes the random generator using a positive integer to compute a new seed.
Compilation flags:
static, synchronizedTemplate:
randomize(Seed)Mode and number of proofs:
randomize(+positive_integer) - oneProtected predicates¶
(no local declarations; see entity ancestors if any)