mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-11 09:05:07 +00:00
33 lines
605 B
ReStructuredText
33 lines
605 B
ReStructuredText
.. pybricks-requirements:: stm32-extra
|
|
|
|
:mod:`urandom` -- Pseudo-random numbers
|
|
================================================
|
|
|
|
.. automodule:: urandom
|
|
:no-members:
|
|
|
|
.. rubric:: Basic random numbers
|
|
|
|
.. blockimg:: pybricks_blockRandInt
|
|
|
|
.. 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
|
|
|