Files
pybricks-api/doc/main/micropython/urandom.rst
T
Laurens Valk 6f55e90365 urandom: Update remaining functions.
Also modify the categories given implicitly in the Python
file and make them explicit in the docs.

Most users are going to want to use `randint` or `random`, so
that basic category comes first.
2022-12-01 11:19:42 +01:00

31 lines
564 B
ReStructuredText

.. pybricks-requirements:: stm32-extra
:mod:`urandom` -- Pseudo-random numbers
================================================
.. automodule:: urandom
:no-members:
.. rubric:: Basic random numbers
.. autofunction:: randint
.. autofunction:: random
.. rubric:: Random numbers from a range
.. autofunction:: getrandbits
.. autofunction:: randrange
.. autofunction:: uniform
.. rubric:: Random elements from a sequence
.. autofunction:: choice
.. rubric:: Updating the random seed
.. autofunction:: seed