Did you know ... Search Documentation:
Pack logtalk -- logtalk-3.98.0/docs/apis/_sources/fast_random_1.rst.txt

.. index:: single: fast_random(Algorithm) .. _fast_random/1:

.. rst-class:: right

object

fast_random(Algorithm)

Public predicates

.. index:: reset_seed/0 .. _fast_random/1::reset_seed/0:

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, synchronized

| Mode and number of proofs: | reset_seed - one


.. index:: randomize/1 .. _fast_random/1::randomize/1:

randomize/1 ^^^^^^^^^^^^^^^

Randomizes the random generator using a positive integer to compute a new seed. Use of a large integer is recommended. In alternative, when using a small integer argument, discard the first dozen random values.

| Compilation flags: | static, synchronized

| Template: | randomize(Seed) | Mode and number of proofs: | randomize(+positive_integer) - one


Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

.. index:: seed_/2 .. _fast_random/1::seed_/2:

seed_/2 ^^^^^^^^^^^

Stores the current random generator seed values (a ground but otherwise opaque term).

| Compilation flags: | dynamic

| Template: | seed_(Algorithm,Seed) | Mode and number of proofs: | seed_(+atom,-ground) - one


Operators

(none)

.. seealso::

:ref:`fast_random <fast_random/0>`, :ref:`random(Algorithm) <random/1>`, :ref:`random <random/0>`, :ref:`backend_random <backend_random/0>`