01.11.2016, 23:35
You could (if positions are stored in an array)
- mark the already taken locations and reroll (not recommended)
- only randomize location which haven't been taken (remove already taken locations from the array)
- shuffle the complete array beforehand
- mark the already taken locations and reroll (not recommended)
- only randomize location which haven't been taken (remove already taken locations from the array)
- shuffle the complete array beforehand