Looks like these random positions are 48px apart? You can use AdvancedRandom and do this:
Another easy option is to put 20 invisible placeholder sprites. Then pick 4 placeholders at random and spawn spikes on them, just make sure that each placeholder can only be picked once.