Class Utility

Class Documentation

class Utility

Public Static Functions

uint32_t abs_int(int32_t val)

Returns the absolute value of an integer.

Return

The absolute value of the integer.

Parameters
  • val: The integer to evaluate.

int32_t rand(int32_t max = 0)

Generates a pseudo-random integer value.

Return

Random integer value.

Parameters
  • max: Max limit of the RNG range.

void srand(int32_t seed)

Sets the initial seed for the RNG.

Parameters
  • seed: Intiial value used to generate random numbers.