Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualServant of the Lord

Posted 10 January 2013 - 09:44 PM

You are calling srand() more than once; you don't need to do "srand(rand());wink.png

 

The rule of thumb is, call srand() only once for your entire program, and pass it time(0) (which you did), but you are calling srand() every loop.

See this thread for more details.


#2Servant of the Lord

Posted 10 January 2013 - 09:43 PM

You are calling srand() more than once; you don't need to do "srand(rand());wink.png

 

The rule of thumb is, call srand() only once for your entire program, and pass it time(0) (which you did).

See this thread for more details.


#1Servant of the Lord

Posted 10 January 2013 - 09:40 PM

You call srand() more than once; you don't need to do "srand(rand());"

 

The rule of thumb is, call srand() only once for your entire program, and pass it time(0) (which you did).


PARTNERS