Hi, I'm using the rand() function to determine random x and y positions (I'm working on a project with sf2dlib).
But X and Y are always the same.
the code is very simplified. Can anyone explain me why I have this issue ? thanks.
But X and Y are always the same.
Code:
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#include <3ds.h>
#include <sf2d.h>
int main(){
srand(time(NULL));
xC = rand() % 320;
yC = rand() % 240;
}