Why limit yourself from 1-8, though I'm assuming it's so you can use the soft buttons. I use the exec. time to seed a pin and then use the up down arrows to select the number and the left right arrows to select the digit. For an algorithm I simply square the seed, take the last two digits off and using the now last four digits as the pin. ex. seed=1234, 1234^2=1522756, pin=5227. It kind of depends on you customer as to how complicated the algorithm is but my my purposes this simple one is enough.