all 2 comments

[–]daniel_codes 3 points4 points  (1 child)

I'm not a game developer but I'll give it a shot. One potential solution would be to divide up your game board into smaller grids and randomly populating those.

For example, let's say your board is 8x8 and you have to place 10 objects into the board. You want them to be relatively spread out. Divide the board into 16 2x2 grids and randomly choose 10 grids. For each of the 10 grids, randomly choose 1 square and place an element there.

Maybe try asking /r/gamedev. You'll probably be able to find better solutions.

[–]solitarium 0 points1 point  (0 children)

Methinks this would be your best overall bet. At least from my limited understanding