TheTempest
New Member
- Reaction score
- 6
Randomized Number Help [FIXED]
Hey guys. In my map there are 20 islands and 12 players. I want to give each player an island, but randomize it so it's different each time (keeps things fresh).
The problem I'm running into is that 2 players can't have the same island.
I need some sort of way to get this right. The only thing I thought which MIGHT work is just looping until it finds an island that isn't taken up. Of course, this is really inefficient.
If you can do it in GUI I would prefer it (I code in a lot of languages but I don't know JASS. How ironic )
Thanks
Hey guys. In my map there are 20 islands and 12 players. I want to give each player an island, but randomize it so it's different each time (keeps things fresh).
The problem I'm running into is that 2 players can't have the same island.
I need some sort of way to get this right. The only thing I thought which MIGHT work is just looping until it finds an island that isn't taken up. Of course, this is really inefficient.
If you can do it in GUI I would prefer it (I code in a lot of languages but I don't know JASS. How ironic )
Thanks