If you are considering a Pic17Cxx have a look at AN544 in the embedded control handbook. Even if you are using a 16C the algorithm should be easily implemented - it basically involves boolean operations and shifting on 16 bits. Cheers Roland >I need some code or a algorithm for generating a 8 bit random number on >a PIC. Does anyone have any code or an algorithm to accomplish this? > >P.S. I need working code or a working algorithm, not theory. Thanks. >I been off the list for a while so I apologize if I am reposting >anything. > >-- >David Sprenkle >