On Fri, 24 Jun 2005, Hector Martin wrote: >> Sorry but I think 3 bit of random number is not >> the same as 0-7 and 5 bit of random number is not >> the same as 0-31. Do I miss something obvious? The randomness affects the order in which the numbers come out of the algorythm, not their domain. A 3 bit full sequence random number sequence is simply a permutation of the vector 0,1,2,3,4,5,6,7 which repeats indefinitely (and identically). Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist