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

◆ random16() [3/3]

LIB8STATIC fl::u16 random16 ( fl::u16 min,
fl::u16 lim )

Generate an 16-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 97 of file random8.h.

97 {
98 fl::u16 delta = lim - min;
99 fl::u16 r = random16(delta) + min;
100 return r;
101}
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NOEXCEPT
Memory functions are available in fl:: namespace via fl/stl/cstring.h Using declarations cannot work ...
Definition math.h:71
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
Definition random8.h:63

References FL_NOEXCEPT, LIB8STATIC, min(), and random16().

+ Here is the call graph for this function: