[det]random(-R:float)Binds R to a new random float in the open interval
(0.0,1.0).
- See also
- - setrand/1, getrand/1
may be used to fetch/set the state.
- In SWI-Prolog, random/1
is implemented by the function
random_float/0.
- Enhanced in 8.1.22 (👉b545fcc) Reduce the risk that the random/1 function start at the same value in multiple threads if we do not use the GMP random functions.