Solution to 43. Modification to makepandigital, now can specify a lower and upper bound. Should be backwards compatable.