On Fri, Oct 28, 2011 at 3:31 AM, Forrest Christian wro= te: > For an open house/demo for our new Pick and Place, we're using up some > PIC18f26J11's and PIC18f26K22's, both in the (same) wrong package, to > make a pair of 'digital dice'. =A0Basically 14 LED's arranged into the > pattern of two dice, appropriate current limiting resistors, attached to > high-current output PIC pins, and a pair of AA's to power the whole > thing, along with a pushbutton hooked to MCLR to re-roll the dice. > My first idea was to use a software random number generator, but store the result in EEPROM, and use that as the seed at the next reset. Should give enough randomness without repeating the cycle too often, depending on the algorithm used. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .