Random numbers generation

Overview

Definition of API for generating random numbers. More…

// global functions

int te_rand_range_exclude(int min, int max, int exclude);

Detailed Documentation

Definition of API for generating random numbers.

Global Functions

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 TE_FATAL_ERROR() if it is impossible to choose any value.

Parameters:

min

Range lower limit.

max

Range upper limit.

exclude

Value to exclude.

Returns:

Random number from the range [min, max].