Not using used random values
#2

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
Reply


Messages In This Thread
Not using used random values - by NeXoR - 01.11.2016, 22:28
Re: Not using used random values - by Nero_3D - 01.11.2016, 23:35
Re: Not using used random values - by Marricio - 01.11.2016, 23:40
Re: Not using used random values - by NeXoR - 01.11.2016, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)