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

◆ random16() [3/3]

u16 fl::fl_random::random16 ( u16 n)
inline

Generate a 16-bit random number in the range [0, n)

Parameters
nThe upper bound (exclusive)
Returns
A random 16-bit number from 0 to n-1

Definition at line 143 of file random.h.

143 {
144 return static_cast<u16>((*this)(n));
145 }