On Apr 9, 2006, at 2:58 AM, Stef Mientki wrote: > But now I want to use a 32 bit random generator You might want to look at lengths between 24 and 32 bits. I've noticed recently that the byte-wide shift registers aren't necessarily the easiest to make into LFSR random number generators. For instance, for a 31-bit LFSR, there are several tap sequences that only reference two bits, so you could potentially trade off slightly more difficult shifting for easier bit XORing... http://homepage.mac.com/afj/taplist.html BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist