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

◆ random16() [1/3]

LIB8STATIC uint16_t random16 ( )

Generate a 16-bit random number.

Returns
random 16-bit number, in the range 0-65535
Examples
DemoReel100.ino, Noise.ino, NoisePlayground.ino, NoisePlusPalette.ino, and SmartMatrix.ino.

Definition at line 54 of file random8.h.

54 {
56 return rand16seed;
57}
uint16_t rand16seed
Seed for the random number generator functions.
Definition lib8tion.cpp:17
#define APPLY_FASTLED_RAND16_2053(x)
Multiplies a value by the pseudo-random multiplier.
Definition random8.h:36
#define FASTLED_RAND16_13849
Increment value for pseudo-random number generation.
Definition random8.h:29

References APPLY_FASTLED_RAND16_2053, FASTLED_RAND16_13849, LIB8STATIC, and rand16seed.

Referenced by fl::NoisePalette::NoisePalette(), addGlitter(), fl::DemoReel100::addGlitter(), CEveryNMillisRandom::computeNext(), confetti(), fl::DemoReel100::confetti(), loop(), random16(), random16(), and setup().

+ Here is the caller graph for this function: