.. 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

