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

◆ computeNext()

void CEveryNMillisRandom::computeNext ( )
inline

Definition at line 916 of file lib8tion.h.

916 {
917 // random16(x) returns [0..x-1], so this yields MIN..MAX
918 fl::u32 range = mMaxPeriod - mMinPeriod + 1;
919 mPeriod = mMinPeriod + random16(range);
920 }
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
Definition random8.h:63

References mMaxPeriod, mMinPeriod, mPeriod, and random16().

Referenced by CEveryNMillisRandom(), and ready().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: