This is the link with the python code (script 2) I have been using to select random point features based on counts: https://support.esri.com/en/technical-article/000013141
I need to somehow select the points with a minimum distance. I have tried looking up the python code for the minimum distance code but it hasn't worked out, although I might be doing it wrong since I am not an expert with python.