A N base number generator from a base 10 number