Random numbers from 1-X without repeating
reddotinc
Member Posts: 653
Hi guys,
I'm looking at ways to increase the performance of my game (move instead of spawn) and am looking for a way to calculate a random number from say 1 - 10 and go through that sequence without duplicating a number until all numbers have been used, and then starting the sequence again (so that duplicate actors aren't created)
Any help would be great
Thanks
// Red Dot Inc
I'm looking at ways to increase the performance of my game (move instead of spawn) and am looking for a way to calculate a random number from say 1 - 10 and go through that sequence without duplicating a number until all numbers have been used, and then starting the sequence again (so that duplicate actors aren't created)
Any help would be great
Thanks
// Red Dot Inc
Comments
Worked on Memorcise - available on the iTunes store... ha! kidding.