Programming ABB robots, Rapid programming
Updated to Rev 1, 6-24-20. Added boolean tracking array to use every number only one time and a counter to reset.
So yesterday on another forum someone had asked about a function to generate random numbers from 1-100. I wanted to take up the challenge. It is really a pseudo random generator, grabbing the current system time, using the minutes and seconds to pick numbers from a multidimensional array. If you call it only from time to time or have a larger interval between using it, I expect that it should appear to be perfectly random. So here it is:
(Code, 120 lines)
I hope that you like it and maybe have a use for it. Have a great day!
So yesterday on another forum someone had asked about a function to generate random numbers from 1-100. I wanted to take up the challenge. It is really a pseudo random generator, grabbing the current system time, using the minutes and seconds to pick numbers from a multidimensional array. If you call it only from time to time or have a larger interval between using it, I expect that it should appear to be perfectly random. So here it is:
(Code, 120 lines)
I hope that you like it and maybe have a use for it. Have a great day!
Read More
![Thumbs Up](https://www.robot-forum.com/images/reaction/6-kisspng-thumb-signal-computer-icons-font-awesome-thumbs-up-5abddf0270d937.2877058315223928344622 Kopie.png)