i couldnt find a good way to express the subject in the title so, if what you are about to read is not what you thought you would from the title, sorry!!!
read about the random number stuff, algorithms etc,
what i didnt find anywhere is how to save the place the sequence has reached so far, so the code can continue from then on
the game asks the RandomNumberGenerator for a number
the first generated number is returned
for the second request the RNG returns the second number the specific algorithm generates
and so on
after the game stops, i want it for the RNG to be able to know how many numbers it have generated so far, so as to continue the process of the “generation” from that place of the sequence
the stupid way is to save the number of numbers generated, and during the game initiallization ask for the RNG to create (and dumb) as many numbers as have been created…
do i make sense?
thank you
(my guess is that there are algorithms that allow you to pick the place of sequence you want it to start generating from and not from place 1 all the time… but i cant seem to find any, if only i were smarter i would create my own…)