> Anybody know how to generate a random number with a pic? 1. retlw 0d43 or do you need more than one :) 2. google for 'pseudo random number generation' or 'linear feeadback shift register' 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. 4. real real randomness: amplify the noise from a zener Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- 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