I have to generate a random number by taking the input as a timer value... SO can anyone suggest how to get this????
Thanks in Advance
> But you already have your start - you said, "by taking the input as a timer value" > > What thought have you given to that? > > How would the timer help?
I think you might have misunderstood the OP. He doesn't want to use the timer to generate the random number, but rather the other way 'round. I believe that the random number is supposed to serve as start value for a timer. So it should rather read: "by taking the output as a timer value".
@Per Nobody said anything about cryptographic strength. We don't know what exactly the PRN is going to be used for. There are many useful applications even for perfectly predictable PRNs.
Kindly, Marcus http://www.doulos.com/arm/
The initial post was: "I have to generate a random number by taking the input as a timer value..."
With your change, that becomes:
"I have to generate a random number by taking the output as a timer value..."
which doesn't make sense.
Only the OP can clarify this.
Well, the OP seems to have lost interest, but here's an interesting idea on how to get a truly random seed for your pseudo-random number generator (PRNG):
www.eetimes.com/.../True-random-number-generator-IP-for-ASICs-and-FPGAs
(it is applicable to microcontrollers - not just ASICs and FPGAs)
Interesting. I know that some encryption system use random noise that emanates from the atmosphere - but this, I never head of.
The Big Idea here is that it requires no additional or special hardware - it just uses what's already there as standard (the SRAM).