generate 50 points with minimum distance between them is 0.1
A cheap solution would be to keep generating random points in the square. If the generated point is not too close to the other points, then keep it, otherwise throw it away. Once you've reached 50 points, you can stop generating random points.
I want to generate 50 random coordinates in an unit square such that each point has minimum Euclidian  distance of 0.1 from other points. How can I generate such in python? Actually I need to know how to put condition in random number. But I could not find any way. One way I was using if command with that condition in it. But I need to generate 50 such points. Thanks for any help.