> What would be the best way to > generate a random number using a > pic? The problem is I need to have > the pic send a repetitive voice > message at random intervals > between, say, 0.5 sec to maybe 5 > sec. to make it sound more > 'natural'. a PN code generator takes only three bytes of ram, and a few instructions. You call the routine, and it shifts the bits. The bit patterns are predictable, but the interval between repeats of a pattern can be a long long time, so you'll never notice it isn't random.