11.08.2018, 20:29
Get the centre of the circle and then use 2 randoms to add to the X and Y, i.e.
Not tested but pretty sure this something like this work.
PHP код:
new Float:CentreCircle[3];
CentreCircle[0] = 0;
CentreCircle[1] = 0;
CentreCircle[2] = 0;
new randX = random(/*Max*/ - /*Min*/)+/*Min*/,
randY = random(/*Max*/ - /*Min*/)+/*Min*/;
printf("Random Position: X: %f, Y: %f, Z: %f", CentreCircle[0]+randX, CentreCircle[1]+randY, CentreCircle[2]);