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

◆ random16() [2/3]

u16 fl::fl_random::random16 ( u16 min,
u16 max )
inline

Generate a 16-bit random number in the range [min, max)

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

Definition at line 151 of file random.h.

151 {
152 return static_cast<u16>((*this)(min, max));
153 }