In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: You'll get better randomness if you'll just keep a spare byte variable, perhaps called "seed", and maintain it through the program. This gives you 256 choices each time through; the code above gives you just eight. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=222202#m222561 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)