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

◆ operator()() [2/3]

result_type fl::fl_random::operator() ( result_type min,
result_type max )
inline

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

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

Definition at line 71 of file random.h.

71 {
72 result_type delta = max - min;
73 result_type r = (*this)(delta) + min;
74 return r;
75 }
u32 result_type
The result type for this random generator (32-bit unsigned integer)
Definition random.h:42