mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 17:46:19 +00:00
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.
31 lines
564 B
ReStructuredText
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
|
|
|