Random(1,10) without repeating the previous number
Bowhill Games
Member Posts: 191
i need to create a random number without repeating the same number twice in a row
so far i have Random(1,10)
but can end up with this 1, 3, 4, 4, i can't have the previous number repeating
Any ideas?
(site currently under construction)
Comments
Check this: http://forums.gamesalad.com/discussion/68841/random-numbers-no-repeating
http://www.arcaderz.com
I think I have a demo in my community tutorial thread - also, I believe there are some other methods posted in the Spare Code thread. You should check those out.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx