OOPs, that is wrong. I think Timer 1 value and Timer 0 value could be used since they are specified as unknown during startup. Regards, Xiaofan -----Original Message----- From: Chen Xiao Fan Sent: Friday, June 24, 2005 11:09 AM To: 'Microcontroller discussion list - Public.' Subject: RE: [PIC] Simple pseudo random code generation ... I just realized that Timer 1 value and Timer 0 value is not a good random seed since all sensors will have the same sequence if powered up at the same time since I am using the same firmware for them and I do not want to use a serial number for each sensor. Maybe the OSCCAL value is a possible candidate. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist