Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of srand()
01-19-2007, 10:58 AM,
#1
Use of srand()
There is a srand() in src/particles.cpp. The seed value is fixed as 1337. If I change the seed value to time(), will it cause any problem elsewhere? I'd like to race against random AI cars. It wouldn't feel quite random if the AI car always come in the same sequence.
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)