Okay. So that is why the sequence will always be the same with RANDOM when it starts up because it is always pulling a ZERO as the seed number if left alone because no other variable has been defined?
So, taking this one step further. IF I had 5 of the exact same programs running on 5 identical projects, but the projects were not connected in any way and I could power them all at the exact same time then each of them would create random numbers in the same order?
If I wanted to really make things even more random (from the observers perspective) I could add a RANDOM number to the RANDOM variable that we are speaking of instead of using the "+23" and saving that? In effect not ever knowing what the darn thing is going to add and save in eeprom for the next time? Granted this would be more "random" than I need, but once again, it helps me understand the theory.
I'm at work so I can't totally put my mind to the high and low byte issue right now, but now that I'm seeing the applicable syntax it isn't all that much of a stretch to grasp it.
Thanks.
Bart
Bookmarks