Analog Number Generation
We will use the math library functions to demonstrate the generation of random numbers:
- We first disable the watchdog for smooth functioning.
- Create a structure object to control the functions.
- Call the respective function for number generation by Analog Pin read value.
This all ends up being surprisingly short in main though the algorithm behind the implementation is very big as could be seen in the source code: