I need to generate variables with random coordinates according to the user's input. Let's assume that there's a variable NV (number of vertices). If the user says that NV is equal to 4, the function should generate variables x1,y1,x2,y2,x3,y3,x4,y4. Each of the pair (x1-y1,x2-y2 etc.) should represent a vertice with some coordinate.
Kindly help.
Aucun commentaire:
Enregistrer un commentaire