hi
I am written a program that use rand function
The program compile and run on my PC with out any problem.
but; The program compile and run on GP2X, But rand will not work, i do not get any out, if i remove rand from my program and set a fixed number i get an output.
i have made test program for rand, the program compile but rand is not working
this the Code:
srand( (unsigned)(time( NULL )+ dice_value*SDL_GetTicks()) );
rand_num=rand();
Do any one know why or have other function to use that work with GP2X (arm-gcc)
Not: i am new in programming
I am written a program that use rand function
The program compile and run on my PC with out any problem.
but; The program compile and run on GP2X, But rand will not work, i do not get any out, if i remove rand from my program and set a fixed number i get an output.
i have made test program for rand, the program compile but rand is not working
this the Code:
srand( (unsigned)(time( NULL )+ dice_value*SDL_GetTicks()) );
rand_num=rand();
Do any one know why or have other function to use that work with GP2X (arm-gcc)
Not: i am new in programming