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

◆ computeNext()

void CEveryNMillisRandom::computeNext ( )
inline

Definition at line 1212 of file lib8tion.h.

1212 {
1213 // random16(x) returns [0..x-1], so this yields MIN..MAX
1214 uint32_t range = mMaxPeriod - mMinPeriod + 1;
1215 mPeriod = mMinPeriod + random16(range);
1216 }
LIB8STATIC uint16_t random16()
Generate a 16-bit random number.
Definition random8.h:56

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: