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.
Was this page helpful?
Thank you for your feedback.
Sorry to hear that. Please contact our technical support.