> From: Ng Wei Gee > > 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. > Try ( SysRandom(0) % 4096 ) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
- Why doesn't this work?! Ng Wei Gee
- RE: Why doesn't this work?! Richard Burmeister
- RE: Why doesn't this work?! Scott Johnson (Bellevue)
- Re: Why doesn't this work?! Ng Wei Gee
- Re: Why doesn't this work?! Holger Klawitter
