int random_int(int infBound, int supBound) - AmiralBl3ndic/CLib_v2 GitHub Wiki

int random_int(int infBound, int supBound)

This function returns a random integer between the two specified bounds

This function detects which bound is the lower, so the order of the parameters does not matters.


Parameters:

  • int infBound: a bound
  • int supBound: another bound

Return values:

Random integer between the specified bounds


Example:

int myInt = random_int(1, 10); //Generates a random int between 1 and 10