Hey everyone it's meh the noob again... (you "sigh" and roll your eyes)
I have abit of a problem with the rand() and srand()
i looked through some forum searches for a solution to my first problem..
When i use something like
it keeps coming up with the same number
int number_of_noobs_in_this_thread = rand()%3;
now i found out why (partly) it's because of something about the seed and that each hardware randoms up the same number (or something like that)
so i look to the forums and found out about srand()
i was like "Finally something that actually works"
until this : 107|error: 'time' was not declared in this scope|
i had used the srand(time(NULL));
to see if that works and without it it goes
note: declared here
but on line 353 ??? wtf???
so now im stuck and no i have only used srand() once and my
are all i have in it ???
Please help ?