Hi
I solved the error in the main and i wrote srand after the main, now it works
Thanks
D
Type: Posts; User: Dedalus
Hi
I solved the error in the main and i wrote srand after the main, now it works
Thanks
D
already done.
I've tried to put srand in:
-the function my_rand()----->but i still get the same values
-in the top of main but i get an error like:
main.c:52: error: expected ‘)’ before...
In main_prog.c.
Limit is an input value.
Hi
I wrote a funct my_random(limit) that 'should' return a pseudor-random value between 0 and limit-1, then I have a small prog like:
main_prog.c
..............
int random_value;...