random generator

Joel Sherrill joel.sherrill at OARcorp.com
Fri Aug 29 17:23:45 UTC 2003


Francesco Poletti wrote:

> Hy, someone knows if there a random generator functions in the rtems code?
> 
> I'm using  random_range but seems it doesn't work correctly.
> 
> psrc_ip = random_range(1,10);

newlib has the complement of drand48, erand48, jrand48, mrand48,
lrand48, rand, srand, and srand48.

I have never seen random_range() before anywhere.  Where is that
from?

> Thanks to all Francesco.
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the users mailing list