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

◆ computeNext()

void CEveryNMillisRandom::computeNext ( )
inline

Definition at line 1230 of file lib8tion.h.

1230 {
1231 // random16(x) returns [0..x-1], so this yields MIN..MAX
1232 uint32_t range = mMaxPeriod - mMinPeriod + 1;
1233 mPeriod = mMinPeriod + random16(range);
1234 }
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:54

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: