I have a question, it might be less related to web developmenet, but I need to get this answer, therefore ill do it in PHP cause it's the same.
I have a square out of coordinates.
bottomX, upperX, bottomY, upperY.
this makes a square, example:
(3048,3582) (3065,3582)
(3048,3565) (3065,3565)
now, I want to generate a random coordinate, INSIDE the square between these coords.
How can I do this without looping a lot of times inside the coord numbers & then checking if its inside?