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

◆ computeNext()

void CEveryNMillisRandom::computeNext ( )
inline

Definition at line 1092 of file lib8tion.h.

1092 {
1093 // random16(x) returns [0..x-1], so this yields MIN..MAX
1094 uint32_t range = mMaxPeriod - mMinPeriod + 1;
1095 mPeriod = mMinPeriod + random16(range);
1096 }
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: