GP32 Good and easy source to srand() from?


Zeroh

Still Fresh
Joined
Jul 3, 2003
Messages
11
What GOOD and EASY sources on the GP32 is there to srand() from?
 
GpTickCountGet() - it returns the amount of processor ticks since the gp32 was turned on.
So, GpSRand(GpTickCountGet()); :)
 
GpSRand(GpTickCountGet()%sizeof(int)); :p think you told me that toris.
 
yeah thats good - you need to link it into when the user presses a button - thats what most good handheld coders do.
 
Back
Top