Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/19/03 16:44
Read: times


 
#43780 - RE: Random Number ( in software)
Responding to: ???'s previous message
Daniel, the routine you posted is exactly the code in the link that Rob posted. There, it is described as a pseudo random number generator which will produce a number between 1...255. But looking at it I must agree that it looks a bit suspect... Gimme a sec while I run this through the sim, and I'll get back to you later in this thread...

If you use a free running timer, it will only give you random numbers if you read it at random times. The randomness has to come from somewhere! I would advise you to concentrate on trying to get the code you posted to work instead of going looking for an alternative.

List of 17 messages in thread
TopicAuthorDate
Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
      RE: Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
      RE: Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
   RE: Random Number ( in software)            01/01/70 00:00      
      RE: Random Number ( in software)            01/01/70 00:00      
      RE: Random Number ( in software)            01/01/70 00:00      
         RE: Random Number ( in software)/ Hans            01/01/70 00:00      
            RE: Random Number ( in software)/ Hans            01/01/70 00:00      
   RE: Random Number ( in software)/ERIC            01/01/70 00:00      
      RE: Random Number ( in software)/ERIC            01/01/70 00:00      
         RE: Random Number ( in software)/            01/01/70 00:00      

Back to Subject List