On Mon, 2 Jun 2003, Olin Lathrop wrote: > > 3. if you need real randomness (different each time you reset the PIC) > > use a user input, for indstance the time a key is pressed modulo 256 us. > > Timer 0 based random number generators also seem to have this > characteristic at least sometimes, although I'm not sure exactly why. My > HAL project (http://www.embedinc.com/pic/hal.htm) contains a random number > generator to select the sound snippet to play, when to play it, and when > and how to shift the "eyes" around. The same unit will do a different > sequence every time it is powered up. Could this be because you start incrementnig TMR0 without setting any starting value? Register contents are "random" at powerup. Bill -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics