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 truely random numbers

#2756 - eskimogd - Wed Feb 12, 2003 6:32 am

Hey folks, i am new to GBA programming although i have been doing general programming for awhile. I was wondering if there is a way to generate true random numbers. I have writen a funtion to fake it but it is psuedo random and is in the same sequence every time the program is run. I know in windows programing you can seed the generator with time so it creates a random number every time the program is run. Is there anything like this that can be use on the GBA. Thanks in advance.