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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/29/03 23:11
Read: times


 
#61534 - RE: Random number from 1 to 8
Responding to: ???'s previous message
OK OK , I will do the hard work again and compare the results , it will be interesting to verify your old book's claim.
How about masking the lower 12 bits and only using the upper 3 bits like this.
randNo = Rand() & 0x7000;
randNo --> shifted 12 bits
would this be better you rekon ?
Do I have to do the division which I can do because there is no timing critical events what so ever, the microcontroller would be sitting idle for few seconds.
mahmood

List of 39 messages in thread
TopicAuthorDate
Random number from 1 to 8            01/01/70 00:00      
   P.S            01/01/70 00:00      
   RE: Random number from 1 to 8            01/01/70 00:00      
      RE: Random number from 1 to 8            01/01/70 00:00      
         RE: Random number from 1 to 8            01/01/70 00:00      
            RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
                  RE: Random number from 1 to 8            01/01/70 00:00      
         RE: Random number from 1 to 8            01/01/70 00:00      
            RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
            RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
   RE: Random number from 1 to 8            01/01/70 00:00      
      RE: Random number from 1 to 8            01/01/70 00:00      
         RE: Random number from 1 to 8            01/01/70 00:00      
            RE: Random number from 1 to 8            01/01/70 00:00      
            RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
                  RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
                  RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
               RE: Random number from 1 to 8            01/01/70 00:00      
                  RE: Random number from 1 to 8            01/01/70 00:00      
                     RE: Random number from 1 to 8            01/01/70 00:00      
                  RE: Random number from 1 to 8            01/01/70 00:00      
   Prime polynomials over GFn            01/01/70 00:00      
   ways to get the pseudo out            01/01/70 00:00      
      RE: ways to get the pseudo out            01/01/70 00:00      
         RE: ways to get the pseudo out            01/01/70 00:00      
            RE: ways to get the pseudo out            01/01/70 00:00      
               RE: ways to get the pseudo out            01/01/70 00:00      
                  RE: ways to get the pseudo out            01/01/70 00:00      
                     RE: ways to get the pseudo out            01/01/70 00:00      
                        RE: ways to get the pseudo out            01/01/70 00:00      
                           RE: ways to get the pseudo out            01/01/70 00:00      
   RE: Random number from 1 to 8            01/01/70 00:00      

Back to Subject List