Hi all,
I've the following lines of code in my program:
char qwe[20];
StrIToA (qwe, (Int32)((SysRandom(0)*4096)/sysRandomMax));
The qn is: how come qwe will either be only 0 or 1?? I need to generate a
random number between 0 to 4095.
The other thing is: since sysRandomMax in OS3.5 is 9999, while it is 32767
in the older OSes, how do I compile the program so that the program knows
whether it should be 9999 or 32767?
Regards,
Gee.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/