In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Electronegativity wrote: Thanks PJ, I certainly wouldn't have thought to search for "congruential" I still need a way to generate a random seed though, or add some non-volatile memory to hold the current value of RandomNum when the device is shut off. When I get home I am going to try using the analog comparator with no input on either pin. At worst case I can have a ADC digitize accross a range that exceeds its sensitivity and read the least significant bit. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=90112#m90145 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)