Or, if a battery is used for VCC: every time you'd like a new 8 bit seed for the code PN, read your battery voltage 8 times with the 10 bit ADC, use the LSB of each read to construct the seed. No extra external parts! David VanHorn wrote: > > When I hear the word "Random", I get nervous. > > One version of "Random" actually means "Unpredictable". Thermal > noise, radioactive decay.. Useful for cryptographic one time pads. > The other actually means "Gaussian". PN sequence, etc. > > For a dice app, I'd use a long PN generator clocked on each iteration > through the main loop (or idle) and then grab the output whenever the > dice are "rolled", such that the register is clocked far more > frequently than it is used. > >
Message
Re: [AVR-Chat] Re: Random Number Generator
2011-01-10 by Ken Holt
Attachments
- No local attachments were found for this message.