This page contains excerpts from the first and second editions of the book “PIC: Your Personal Introductory Course” which describe an example PIC project: a Random Lottery Number Generator. It works from basic concepts introduced elsewhere in the book, and so does not function as a standalone tutorial. As this has proved a popular program, but was removed from the latest, third edition version, I have included it here. I would like to thank Max Horsey who came up with the idea and designed the circuit.
A pdf file of the text.
A pdf file of the images, including the circuit diagram.
The DiceLott program.