FastLED 3.10.8
Loading...
Searching...
No Matches

◆ random8() [3/3]

LIB8STATIC fl::u8 random8 ( fl::u8 min,
fl::u8 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 79 of file random8.h.

79 {
80 fl::u8 delta = lim - min;
81 fl::u8 r = random8(delta) + min;
82 return r;
83}
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NO_EXCEPT
Memory functions are available in fl:: namespace via fl/stl/cstring.h Using declarations cannot work ...
Definition math.h:71
LIB8STATIC fl::u8 random8() FL_NO_EXCEPT
Generate an 8-bit random number.
Definition random8.h:53
unsigned char u8
Definition stdint.h:131

References FL_NO_EXCEPT, LIB8STATIC, min(), and random8().

+ Here is the call graph for this function: