Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#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