jeudi 23 avril 2020

Random function in python to generate random pair

In python how to generate a random pair of points (x,y) such that the pair lies inside a circle of radius r. Basically the x and y should satisfy the condition x^2 + y^2 = r^2.




Aucun commentaire:

Enregistrer un commentaire