Skip to content

Random Numbers

gicking edited this page Feb 10, 2018 · 1 revision

back to Command Reference

List of commands for pseudo-random number gerenation. Due to lack of function overloading the naming is partly different from Arduino platform, however functionality is the same.

All below commands are auto-loaded in Arduino-like projects, i.e. which include main_general.h. In other projects, include misc.h. No extra #define is required in config.h.

Note that the used pseudo random number generator by default starts with a fixed seed. To randomize the result, call randomSeed() with a truly random seed, e.g. from a floating ADC input, or microseconds between two user inputs.

Commands

Clone this wiki locally