Download

Random int in range but...

Never the same int twice in a row. How? Pls help! :slight_smile:

Each time you get an int from the random, store it’s value in a variable, and then next time you get the int, make sure the new random is not the same as the old. If the values are the same, set the variable once again, and continue doing so until they are different.

Thank you sir! So simple yet somehow i got stuck on it. :slight_smile: