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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/14/05 11:11
Read: times


 
#89618 - rand()
Responding to: ???'s previous message
If you have an old version of Keil be aware that the pseudo-random number generator in rand() is very poor. It has since been fixed and now uses a 32-bit LFSR.

You may find this article to be of interest:

http://www.programmersheaven.com/zone5/cat.../32219.htm

It will tell you how the Keil rand() works and how to do your own LFSR based random number generator.

List of 21 messages in thread
TopicAuthorDate
Randomization?            01/01/70 00:00      
   No RND op code in 8051/52            01/01/70 00:00      
   Random Number            01/01/70 00:00      
   random stuff            01/01/70 00:00      
      We can also count....            01/01/70 00:00      
      But Good Enough!!!            01/01/70 00:00      
      LC RNG            01/01/70 00:00      
      Random what?            01/01/70 00:00      
   maxim's lfsr            01/01/70 00:00      
   the dangers of thinking random is random            01/01/70 00:00      
   wibbly maths            01/01/70 00:00      
      Good old Galois Fields            01/01/70 00:00      
         Bet you didnt know            01/01/70 00:00      
            Try this link            01/01/70 00:00      
               While browsing            01/01/70 00:00      
   rand()            01/01/70 00:00      
      still pseudo            01/01/70 00:00      
         better pseudo!            01/01/70 00:00      
            rand() is part of stdlib.h            01/01/70 00:00      
               true, but not the point            01/01/70 00:00      
                  application dependent            01/01/70 00:00      

Back to Subject List