Hi,
i have some mathematic instruction to resolve
because i want just one number , i used randomise|z - c| =< r and|z - w| =< d
it give me ranom number but when i use it to calculate anotherCode:mini =min((d-w),(c-r)); maxi=max((d+w),(r+c)); z=mini + (rand()%(maxii - minii));
it give me error because many times the "z"is very hightCode:f=sqrt(pow(d,2)-pow((z-w),2));
so i get negative inter the sqrt
how i resolve this problem ? shall i add another limit to the Z?