avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] rand()


From: Torsten Hahn
Subject: Re: [avr-gcc-list] rand()
Date: Wed, 10 Jul 2002 11:42:47 +0200

Am Mittwoch, 10. Juli 2002 10:56 schrieb Bernd Felsche:
> Torsten Hahn tapped away at the keyboard with:
> > has somebody still implemented an random number generator on the
> > avr ? May be, it would be nice such a function in the avr-libc.
> > Random number routines are not the problem i think but how to
> > generate a "seed". On a pc you can use the time() function. Has
> > somebody an idea how to do it on avr ?
>
> Use the ADC if you have one.... hooked up to a white-noise
> generator. That means zero compute time; just select the ADC channel
> and start the conversion.
>
> Either that or a CCD looking at a lava-lamp. :-)

Hey, nice idea. Sounds great ! I will test it out.
-- 
Torsten Hahn 
TU Bergakademie Freiberg - Institut für Experimentelle Physik 
Silbermannstraße 1, 09596 Freiberg
mail: address@hidden
phone: +49 3731 392670 
avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]