Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of srand()
01-20-2007, 11:15 AM,
#6
 
Just to clear things up, the AI algorithm does not use random value. What I wanted to do is changing the car selection code so every time you race against a random opponent car. And to do that, I need to change the srand() to use a non-fixed seed. I'm thinking of just changing the srand() in particles.cpp instead of calling srand() again.
Reply


Messages In This Thread
Use of srand() - by rookie1 - 01-19-2007, 10:58 AM
[No subject] - by thelusiv - 01-19-2007, 02:35 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-19-2007, 10:12 PM
[No subject] - by thelusiv - 01-19-2007, 10:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 01-19-2007, 11:16 PM
[No subject] - by rookie1 - 01-20-2007, 11:15 AM
[No subject] - by thelusiv - 01-23-2007, 01:13 AM
[No subject] - by joevenzon_phpbb2_import3 - 01-23-2007, 02:41 AM
[No subject] - by rookie1 - 01-24-2007, 10:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)