random()
Random number generation
Generates a random number.
uint32_t random(uint32_t maxval)
uint32_t random(uint32_t minval, uint32_t maxval)
The first function returns a value in the range 0..(maxval-1)
. Note that the value of maxval is not the maximum value itself.
The second function returns a value in the range minval..maxval-1
.