FastLED 3.9.15
Loading...
Searching...
No Matches

◆ random8() [3/3]

LIB8STATIC uint8_t random8 ( uint8_t min,
uint8_t lim )

Generate an 8-bit random number in the given range.

Parameters
minthe lower bound for the random number, inclusive
limthe upper bound for the random number, exclusive

Definition at line 70 of file random8.h.

70 {
71 uint8_t delta = lim - min;
72 uint8_t r = random8(delta) + min;
73 return r;
74}
LIB8STATIC uint8_t random8()
Generate an 8-bit random number.
Definition random8.h:44

References LIB8STATIC, and random8().

+ Here is the call graph for this function: