In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Electronegativity wrote: Those generators are nice, but always generate the same sequence of numbers if you start with the same seed. They also repeat at a maximum interval equal to the highest available value in the numeric register. What I described above is a way to generate random seeds in hardware so the sequence of random numbers is not always the same every time you power up the device. If you have a human pushing buttons it is generally not a problem since you can use the value of the Real Time Clock Counter (RTCC) either as is, or to seed the generator. I am finishing up a necklace for my wife that has randomly blinking LED's, and because of the nature of my insanity I want them to blink randomly, instead of according to a pattern. The LED's also get brighter and dimmer because the rate of flickering is also randomized. It has a nice little circuit board on the back with an SX20 running off a single CR2430 battery. When it's done I will post some pics. What is your project JonnyMac? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=167121#m167184 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)