| Mozzi version v1.1.0 sound synthesis library for Arduino |

mozzi_rand.h
1 #ifndef MOZZI_RAND_H_
2 #define MOZZI_RAND_H_
3
4 #if ARDUINO >= 100
5 #include "Arduino.h"
6 #else
7 #include "WProgram.h"
8 #endif
9
10
11 unsigned long xorshift96();
12
13 void xorshiftSeed(unsigned long seed);
14 void randSeed(unsigned long seed);
15 void randSeed();
16
17 int8_t rand(int8_t minval, int8_t maxval);
18 int8_t rand(int8_t maxval);
19
20 uint8_t rand(uint8_t minval, uint8_t maxval);
21 uint8_t rand(uint8_t maxval);
22
23 int rand(int minval, int maxval);
24 int rand(int maxval);
25
26 unsigned int rand(unsigned int minval, unsigned int maxval);
27 unsigned int rand(unsigned int maxval);
28
29 uint8_t randMidiNote();
30
31 #endif /* MOZZI_RAND_H_ */
randSeed
void randSeed()
Initialises Mozzi&#39;s (pseudo)random number generator xorshift96(), which is used in Mozzi&#39;s rand() fun...
Definition: mozzi_rand.cpp:117
rand
int rand(int maxval)
Ranged random number generator, faster than Arduino&#39;s built-in random function, which is too slow for...
Definition: mozzi_rand.cpp:240
rand
unsigned int rand(unsigned int minval, unsigned int maxval)
Ranged random number generator, faster than Arduino&#39;s built-in random function, which is too slow for...
Definition: mozzi_rand.cpp:207
xorshift96
unsigned long xorshift96()
Random number generator.
Definition: mozzi_rand.cpp:26
randMidiNote
uint8_t randMidiNote()
Generates a random number in the range for midi notes.
Definition: mozzi_rand.cpp:261
rand
unsigned int rand(unsigned int maxval)
Ranged random number generator, faster than Arduino&#39;s built-in random function, which is too slow for...
Definition: mozzi_rand.cpp:251
rand
int rand(int minval, int maxval)
Ranged random number generator, faster than Arduino&#39;s built-in random function, which is too slow for...
Definition: mozzi_rand.cpp:195