65 return (high << 16) | low;
75 fl::u64 p = (fl::u64)n * (fl::u64)r;
76 return (u32)(p >> 32);
86 return (
u8)(((
u8)(r & 0xFF)) + ((
u8)(r >> 8)));
u8 random8(u8 n) FL_NO_EXCEPT
u16 random16_nolock() FL_NO_EXCEPT
u16 random16(u16 min, u16 max) FL_NO_EXCEPT
result_type operator()(result_type min, result_type max) FL_NO_EXCEPT
static constexpr result_type maximum() FL_NO_EXCEPT
u16 next_random16_nolock() FL_NO_EXCEPT
result_type generate_nolock(result_type min, result_type max) FL_NO_EXCEPT
random() FL_NO_EXCEPT
Default constructor - uses current global random seed.
result_type operator()() FL_NO_EXCEPT
void set_seed(u16 seed) FL_NO_EXCEPT
u16 random16(u16 n) FL_NO_EXCEPT
u8 random8() FL_NO_EXCEPT
random(u16 seed) FL_NO_EXCEPT
Constructor with explicit seed.
u16 random16() FL_NO_EXCEPT
result_type operator()(result_type n) FL_NO_EXCEPT
u8 random8_nolock(u8 n) FL_NO_EXCEPT
u8 random8(u8 min, u8 max) FL_NO_EXCEPT
static constexpr result_type minimum() FL_NO_EXCEPT
u32 next_random32_nolock() FL_NO_EXCEPT
u8 random8_nolock(u8 min, u8 max) FL_NO_EXCEPT
u8 random8_nolock() FL_NO_EXCEPT
void add_entropy(u16 entropy) FL_NO_EXCEPT
result_type generate_nolock(result_type n) FL_NO_EXCEPT
result_type generate_nolock() FL_NO_EXCEPT
u16 get_seed() const FL_NO_EXCEPT
A random number generator class that wraps FastLED's random functions.
Fast, efficient random number generators specifically designed for high-performance LED programming.
LIB8STATIC fl::u16 random16_get_seed() FL_NO_EXCEPT
Get the current seed value for the random number generator.
#define APPLY_FASTLED_RAND16_2053(x)
Multiplies a value by the pseudo-random multiplier.
#define FASTLED_RAND16_13849
Increment value for pseudo-random number generation.
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NO_EXCEPT
math::random & default_random()
Global default random number generator instance.
InputGamut g FL_NO_EXCEPT
Base definition for an LED controller.