I'm trying to create a maximum number (or near max) of random points in a polygon with a minimum spacing of 2km between them. I am using the 'Create Random Points' Data Management tool and selecting the layer (1 polygon) I want the points in as the constraining feature class. The polygon would easily fit about 50 datapoints spaced by 2km each.
I set the maximum points (number of points - long) to 20, minimum spacing to 2km, and run the command. However, with 2km spacing it gives me "WARNING: 000983: The specified number of points could not be created in all cases due to restrictions from the minimum allowed distance." and it usually only produces about 12-15 datapoints, even though it could fit 50 and there's clearly space left in the polygon.
When I lower the minimum distance threshold to 1km and increase the maximum number of points they usually all fit in the polygon. Is there a way to get this to work at 2km or another tool that will do this?