gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > seeding random number

#2753 - eskimogd - Wed Feb 12, 2003 5:19 am

Hi am im new to programming with the gba but have been programming for a good while now. I was wonder how on the GBA would you seed a truely random number. I have created a little funtion to simulate a random number but every time you run the code the same sequence occurs. With the pc it is easy just seed with the time to make a random number. Is there anything like this that i can use. Thanks for your time.