>Where to find a routine for generating a (pseudo) random 8 bit number into >a file register? Have a look at the MicroChip Application notes.. either the book, or on the website.. www.microchip.com. I'm sure theres some random number generator routines in there.. --- Brett Paulin : Trance DJ Spock, Electronic Engineer & Gyrocopter Pilot For DAT trading, DJ Spock & Techno Magic - http://home.mira.net/~rando THINK for yourself, QUESTION Authority - ICQ Id# 5879520