In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tgsimmons wrote: Hi Jon (or should I call you Chuckie's Daddy?), Can you expand a little on how you arrived with the value of 26. I assume that's the range from 0 to 25 but I don't quite understand how that works with the Modulus. (I haven't used Modulus in the past and I'm just barely understanding the concept.) Also, rVal will be the random number between 0 and 255 generated by the RANDOM command given rVal is a byte. Is this correct? Thanks, Terry ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=193221#m193232 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)