Need help with random number.
AlkaPP
Member, PRO Posts: 194
Hi all,
Can someone show me how to assign a random number to actors without repeating the same number?
For example, number random from 1-10 without repeating then assign them to 10 actors so each actor has a unique random number.
I know it is confusing, but please help. An alternative way to get the same result would be great too.
Thanks,
Alan,
My Gamesalad Games On App Store:
Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1
Comments
Here you go: https://www.google.com/#q=gamesalad+random+number+without+repeating
BRUNKT.com
Follow me at: Twitter - Instagram
Games and Templates
Appstore
Thanks @8bitninja, i've seen that one. It is not exactly what I'm looking for. I'm trying to random 1-10 without repeating it.
My Gamesalad Games On App Store:
Greedy Chubby: https://itunes.apple.com/us/app/greedy-chubby/id834371213?ls=1
You've seen that one? It was a Google Search with 4,060 results. I can assure you that at least one of those results is the correct answer to your question. The first result (a tshirtbooth YouTube video) is in fact a demonstration of a way to select a random number without repeating it but generally the accepted method for doing this now is to use a table as follows:
Create a table with a unique value in each row (column 1):
1 2 3 4 5 6 7 8 9 10
Repeat until the table is empty:
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User