void *thread(void *param) {
float distancia;
int numeroPontos = atoi(param);
int i;
float numeroAleatorio_x;
float numeroAleatorio_y;
for (i = 0 ; i < numeroPontos; i++) {
x = rand() % 1000;
y = rand() % 1000;
}
pthread_exit(0);
}
So far I've got this, it can only generate positive numbers. How do I generate negative ones?
Thanks in advance