Bob Ammerman wrote: > > Hi Bob, maybe I misunderstand you, but I still think > > the point was valid. If you generate a random number > > every time you update the pwm and the number is TRULY > > random it could be a disaster. You could generate the > > same number every time for an unknown amount of times. > > This is the real problem with truly random numbers. > > Roman, > > As I said, we were dealing with a PRNG (where P means "pseudo"). These > algorithms, given the same starting point, always generate the same sequence > and always generate each number exactly once. > Actually, it is rather difficult to get a TRUE random number generator in a > computer. The only real way is to base it on some completely external > stimulus. Thanks for clearing that up Bob. So we are talking about the same thing. :o) -Roman -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.