In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Electronegativity, I figured that since you wanted a [b]true[/b] random number generator, you needed to be sure it was truly random. Since you're just making a game, any old psuedo-random number generator will be more than adequate. You're killing yourself with all this extra effort. James' suggestion will work fine, but can be made even better. Run a pseudo-random number generator in the RTCC. Assuming a reasonably fast interrupt rate, you will be generating hundreds or thousands of random numbers per second. Whenever the user presses a button to start a new game, there's basically no way they will ever be accurate enough to predictably get the same random seed each time. I used this exact technique on a project and it works great. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=90112#m91247 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)