why do i get error to random numer generator?

i wrote in a program
1
2
srand ( time(NULL) );
    trap = rand() % (lenght2-1);

and i receive the following error:
time cannot be used as function
why?
it is inside int (main)
i havent forgotten to write include <time.h>
and i still get this error.
why?
hello I speak roumanian .... so ...you?!
in the message you wrote wrong length2 ... so which is the started value for variable trap?! this I think is the problem ....


I try to make this program ....
i know why are you trying to make the same program...
please give me your messenger ID.
and now i found what mistake was i doing
for piulitza: aramianda@yahoo.com
thanx a lot!!!
Last edited on
Topic archived. No new replies allowed.