> Ok sorry to keep bugging you guys but i have another problem.. to make
a
> random number everytime i use a program i would stick #include
<time.h> at
> the top and then add srand(clock()); in the program so that the number
will
> always be different..(randomize it) it doesnt work on here. what am
i
> doing wrong?
> it gives no errors.
Try time(0) instead of clock().. it's what works for me.
|