On Thu, 16 Oct 1997, Mike Harrison wrote: > How do you generate a random number? - if all PICs are identical, any > of the normal algorithms will generate the same number! > The only way I can think of to do it would be to time the (long > prescaled) WDT to a few uS (not too hard), and hope the difference > between the RC WDT osc characteristics due to temp/voltage are > sufficiently different. You can get OTP parts from Microchip that have individual serial numbers burned into them. You could initialize the PRNGs off of a combination of those and some sort of system timer, perhaps? Pierce Nichols "I have a work order for the immediate demolition of your reality tunnel." -Bob, RAW Construction Corp. =========================================================================== Geek Code v2.1: d?H+sg+a-w++v+c++UHS+P+L+E+N+K!WM--!V-po+Y+t+5+j+R+G!tvb+++ D+B---e+u*hf+r+*n-y+