:orphan: .. index:: pair: group; Random numbers generation .. _doxid-group__te__tools__te__rand: Random numbers generation ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Definition of API for generating random numbers. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block // global functions int :ref:`te_rand_range_exclude`(int min, int max, int exclude); .. _details-group__te__tools__te__rand: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Definition of API for generating random numbers. Global Functions ---------------- .. index:: pair: function; te_rand_range_exclude .. _doxid-group__te__tools__te__rand_1ga5c17718585a1b4f7663c7a22bf677d1b: .. ref-code-block:: cpp :class: doxyrest-title-code-block int te_rand_range_exclude(int min, int max, int exclude) Choose a random value from a range excluding some value inside that range. This function will use :ref:`TE_FATAL_ERROR() ` if it is impossible to choose any value. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - min - Range lower limit. * - max - Range upper limit. * - exclude - Value to exclude. .. rubric:: Returns: Random number from the range [min, max].