This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TrueRandomSeed.ino | |
| // This example sketch shows how to provide a truly random seed value to the built in | |
| // library pseudo random number generator. This ensures that your sketch will be | |
| // using a different sequence of random numbers every time it runs. Unlike the | |
| // usually suggested randomSeed(analogRead(0)) this method will provide a much more | |
| // uniform and varied seed value. For more information about the basic technique used | |
| // here to produce a random number or if you need more than one such number you can | |
| // find a library, Entropy from the following web site along with documentation of how | |
| // the library has been tested to provide TRUE random numbers on a variety of AVR | |
| // chips and arduino environments. |