diff --git a/src/main.c b/src/main.c index fc8ea89..ad1a079 100644 --- a/src/main.c +++ b/src/main.c @@ -63,8 +63,10 @@ int main(int argc, char **argv) for (int i = 0; i < ARROW_NUMBER; i++) { scheduler0->arrowList->space[i].x = rand() % scheduler0->globalDrawingSpace->xmax; - scheduler0->arrowList->space[i].y = rand() % SPACE_SIZE; - scheduler0->arrowList->space[i].z = rand() % SPACE_SIZE; + scheduler0->arrowList->space[i].y = + rand() % scheduler0->globalDrawingSpace->ymax; + scheduler0->arrowList->space[i].z = + rand() % scheduler0->globalDrawingSpace->zmax; } scheduler0->nmaxThread = MAX_THREAD;