Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Where is LCSrandom()?  (Read 1200 times)

Kosmonaut

  • Escaped Lunatic
    • View Profile
Where is LCSrandom()?
« on: May 07, 2011, 02:52:15 pm »

I've been looking at the source code and I see a lot of references to an LCSrandom() function. I also saw it prototyped in one of the headers as long LCSrandom(unsigned long max). However, I can't seem to find the function itself anywhere. Is there a coder here who can point me in the right direction?
Logged

Jonathan S. Fox

  • Bay Watcher
    • View Profile
    • http://www.jonathansfox.com/
Re: Where is LCSrandom()?
« Reply #1 on: May 07, 2011, 04:30:08 pm »

I've been looking at the source code and I see a lot of references to an LCSrandom() function. I also saw it prototyped in one of the headers as long LCSrandom(unsigned long max). However, I can't seem to find the function itself anywhere. Is there a coder here who can point me in the right direction?

Line 433 of trunk/src/game.cpp.
Logged

Kosmonaut

  • Escaped Lunatic
    • View Profile
Re: Where is LCSrandom()?
« Reply #2 on: May 08, 2011, 02:07:49 am »

Aha, I see it now. Thanks!
Logged