
This is what I do when I want to generate random numbers and need to know the final sequence. I hope this helped a little! I tend to ramble. You can keep a floating Value for the next number you need and use it as an index for the Random Array.

Putting the numbers into RandomArray(1 to 100) is just so you don’t have to run the loop each time you need a number. RandomArray(1 to 100) = LoopValue times MixedArray(LoopValue) “get the first ten integers” then increase loopValue and multiply the second value through the loop and “get the next ten integers” into the RandomArray(1 to 100) increasing the RandomArray index with each iteration of the loop up to 100.īy setting the MixedArray(1 to 10) with a set of numbers that you select, you can control the way the numbers are generated into RandomArray(1 to 100).Įxample: set MixedArray(1 to 10) to a sequence of 1,3,5,7,9,2,4,6,8,10 and see what the loop generates. If you are looking for a mixed sequence of integers from 1 to 100 that always run in the same order and can’t get the random generator to not repeat a number before getting to 100, then you could generate a mixed sequence of integers yourself by maybe running a loop from 1 to 10 and using a MixedArray(1 to 10) to multiply each iteration by the loop’s index. What you see below is not meant to be pure code, but just an idea of how to make your random numbers predictable.

Then you can use the array to generate the next iterations of the sequence.

If you are saying that you want the second set of numbers to match the first random set of numbers, you can run the random generator on startup and capture it into an array of integers.
