RRobbins
Lifetime Supporting Member
Does anyone have a GOOD random number generator for a Siemens S7-300? I am trying to generate a number between 0 and 313.
The proposals yet made will not provide you with a GOOD random number generator. GOOD in the sense that they will not generate predictable sequences.
If that is what you mean, then there is no programmed random generator that will do. Being programmed means it's based on a mathematical formula, and this in turn means it will always be predictable. All you need to do to predict the next value is calculate it. This is why this kind of random generators is always called PSEUDO random generator. The idea behind them is: if the sequence is long enough, then it looks as if it's random. Most people however forget to mention the term pseudo.I wanted to say: a good random number generator will not generate predictable sequences.