|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <rng.hpp>
Public Member Functions | |
| Rng (uint32_t seed=1) | |
| uint32_t | next () |
| Advance state and return raw 32-bit value. | |
| float | bipolar () |
| Random float in [-1.0, 1.0]. | |
| float | unipolar () |
| Random float in [0.0, 1.0]. | |
| void | seed (uint32_t s) |
| Set state directly (for test reproducibility). | |
|
inlineexplicit |
|
inline |
Advance state and return raw 32-bit value.
Definition at line 31 of file rng.hpp.
Referenced by bipolar(), and unipolar().
|
inline |
Random float in [-1.0, 1.0].
Definition at line 39 of file rng.hpp.
References next().
Referenced by sbl::dsp::modules::TapeDelay::process(), and sbl::dsp::comp::AnalogDrift::process().
|
inline |
|
inline |
Set state directly (for test reproducibility).
Definition at line 50 of file rng.hpp.
Referenced by sbl::dsp::comp::AnalogDrift::seed().