def createNumber(self, digits):
        """ creates a random number >= 2 and with given number of digits """
        minimum = 10**(digits-1)
        if minimum == 1: minimum = 2
        return random.randrange(minimum, 10**digits - 1)
 creates a random number >= 2 and with given number of digits 
recipes/Python/578111_Learning_calculate_mental/recipe-578111.py