[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] generating random numbers



On Wed, Aug 09, 2000 at 12:58:20PM +0700, Adi Sudewa wrote:
> 
> Hi all,
> 
> how to generate random integers from within real-time thread.
> I need to generate random numbers so my simulation can be unpredictable.
> It is not cool to have a train running with 20.00 m/s speed 
> all the time so I'd like to have the speed fluctuate round 20.00 m/s.


The GNU Scientific Library has one of the finest collections
of PRNGs, from the trvially simple to ones capable of real
work, and then some capable of Real Work (tm).  I'd pick a
relatively simple one and port it to RT.




dave...