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

◆ random8() [2/3]

u8 fl::fl_random::random8 ( u8 min,
u8 max )
inline

Generate an 8-bit random number in the range [min, max)

Parameters
minThe lower bound (inclusive)
maxThe upper bound (exclusive)
Returns
A random 8-bit number from min to max-1

Definition at line 128 of file random.h.

128 {
129 u8 delta = max - min;
130 u8 r = random8(delta) + min;
131 return r;
132 }
u8 random8()
Generate an 8-bit random number.
Definition random.h:109
unsigned char u8
Definition int.h:17

References random8().

+ Here is the call graph for this function: