Hello! I'm looking for help regarding randomizing integers without it repeating the same number.
So the goal is to set where people will spawn each round.
So far i've set up an Integer with an Array thinking it could hold all the different numbers so when the spawn trigger is activated it can go thru the array and select all the players spawn locations.
Its fairly easy to randomize the numbers, the tricky part is to "block" out numbers thats already taken.
Thats where I need your help. I've drawn a picture and hopefully it will help explain a bit further else for further information please leave a comment and I'll happily explain further.
https://imgur.com/hiHTiQE
Thanks in advance.
So the goal is to set where people will spawn each round.
So far i've set up an Integer with an Array thinking it could hold all the different numbers so when the spawn trigger is activated it can go thru the array and select all the players spawn locations.
Its fairly easy to randomize the numbers, the tricky part is to "block" out numbers thats already taken.
Thats where I need your help. I've drawn a picture and hopefully it will help explain a bit further else for further information please leave a comment and I'll happily explain further.
https://imgur.com/hiHTiQE
Thanks in advance.
