This is the multi-page printable view of this section. Click here to print...

Return to the regular view of this page

As of 2025-07-24

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.