View Single Post
Siveroo
Junior Member
Join Date: Apr 2020
Old 10-14-2020 , 00:50   Re: Which method is more efficient?
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
PHP Code:
random_coord_within_region(Float:xFloat:yradius=5.0Float:random_coord[2])
{
   
random_coord[0] = random_float(-radiusradius) + x;
   
random_coord[1] = random_float(-radiusradius) + y;


shouldn't be so complicated.
but i think that will result in a rectangular region instead of a circle
Siveroo is offline