PIC Microcontoller Math Methods

Random number generators

Quick little 8 bit random number generators

Random number generator for the 16F876 using timer 0

A few of the lowest order bits of an existing A2D value can be used as a random number or at least as a seed for one of the generators above. This works best when a high resolution A2D is being used to measure a high noise signal (where the signal is resolved by averageing)

Linear Congruential Sequence

Also:

See also:

Archive:

Comments: