![]()  | 
  
    VCV Rack API v2
    
   | 
 
Go to the source code of this file.
Classes | |
| struct | rack::random::Xoroshiro128Plus | 
| xoroshiro128+.  More... | |
Namespaces | |
| namespace | rack | 
| Root namespace for the Rack API.  | |
| namespace | rack::random | 
| Random number generation.  | |
Functions | |
| void | rack::random::init () | 
| Xoroshiro128Plus & | rack::random::local () | 
| Returns the generator.   | |
| template<typename T> | |
| T | rack::random::get () | 
| template<> | |
| uint32_t | rack::random::get () | 
| template<> | |
| uint16_t | rack::random::get () | 
| template<> | |
| uint8_t | rack::random::get () | 
| template<> | |
| bool | rack::random::get () | 
| template<> | |
| float | rack::random::get () | 
| template<> | |
| double | rack::random::get () | 
| uint64_t | rack::random::u64 () | 
| Returns a uniform random uint64_t from 0 to UINT64_MAX.   | |
| uint32_t | rack::random::u32 () | 
| Returns a uniform random uint32_t from 0 to UINT32_MAX.   | |
| float | rack::random::uniform () | 
| Returns a uniform random float in the interval [0.0, 1.0).   | |
| float | rack::random::normal () | 
| Returns a normal random number with mean 0 and standard deviation 1.   | |
| void | rack::random::buffer (uint8_t *out, size_t len) | 
| Fills an array with random bytes.   | |
| std::vector< uint8_t > | rack::random::vector (size_t len) | 
| Creates a vector of random bytes.   | |