> Are there any simple code to generate arbitrary pseudo > random number (<=8-bit)? The common LFSR pseudo-random generators in fact generate one bit per step. Just take the number of bits you need. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist