Function random_discrete(int, int)

Function random_discrete(int, int)#

Function Documentation#

int random_discrete(int a, int b)

Returns a random integer number from a uniform discrete distribution of a to b.

Parameters:
  • a[in] lower value of the distribution range

  • b[in] upper value of the distribution range

Returns:

The random number.