Hello I need to generate a "random" delay between 0.5 and 10 second using 12c508 , int osc, prescaled at whatever! e.g. RG1 bsf gpio,1 call random bcf gpio,1 call random goto RG1 Can anyone help be with a snippet of code for "random" (with comments so I can learn!) Thanks in advance Kev