Dave, any 8 bit prefab for PIC? call me lazy... -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of David VanHorn Sent: Sunday, August 19, 2001 12:34 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Pseudo-Random numbers At 11:36 PM 8/18/01 -0400, Ron Anthony wrote: >Hello all. I need to generate numbers that appear to be ranomized, it makes >no difference if they are truly random. I can seed it with a value culled >from ram before i wipe the ram, but it's not necessary. > >Any simple code to generate a seemingly random number, from 0 to 255? I have a 19 bit PN generator implementation in AVR code on my web site. It's in the "getting started" firmware, under microcontrollers. You shouldn't have any trouble porting it over to picish. -- Dave's Engineering Page: http://www.dvanhorn.org I would have a link to http://www.findu.com/cgi-bin/find.cgi?KC6ETE-9 here in my signature line, but due to the inability of sysadmins at TELOCITY to differentiate a signature line from the text of an email, I am forbidden to have it. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu