Advertising

Random number generator, kind of

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:


I hope that you like it and maybe have a use for it. Have a great day!