Thank you Bob.

- Avinash


On Tue, 14 Sep 2004 16:01:41 -0400, Robert Moynihan
<[EMAIL PROTECTED]> wrote:
> Look up this function in the programming reference:
> Int16 SysRandom (Int32 newSeed)
> 
> Bob.
> 
> 
> 
> Avinash Ponugoti wrote:
> 
> >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/
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to