Hello,
I need to generate random number with in a given range. I tried
to do some thing like this.
Int GetRandomNumber(int startNum, int endNum){
return (rand() % (endNum - startNum + 1)) + startNum - 1;
}
It says rand() function not found. Can some one help me with
generating a random number(i need to generate some -ve numbers like -1
also). Is there some similar function supported by palm.
Appreciate your help.
Thank you.
- Avinash.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/