'The lid won\'t open, but there is a small chance
of causing the lamp to break.'

def func(self):

    rand = random.random()
    if (rand < 0.2):
        string = 'You    smash    your    hand    against    the    glass'
        string += "    with    all    your    might.    The    lid    won't    budge"
        string += "    but    you    cause    quite    the    tremor    through    the    button's    mount."
        string += "\nIt    looks    like    the    button's    lamp    stopped    working    for    the    time    being."
        self.obj.lamp_works = False
    elif (rand < 0.6):
        string = "You    hit    the    lid    hard.    It    doesn't    move    an    inch."
    else:
        string = 'You    place    a    well-aimed    fist    against    the    glass    of    the    lid.'
        string += '    Unfortunately    all    you    get    is    a    pain    in    your    hand.    Maybe'
        string += '    you    should    just    try    to    open    the    lid    instead?'
    self.caller.msg(string)
    self.caller.location.msg_contents(('%s    tries    to    smash    the    glass    of    the    button.' % self.caller.name), exclude=self.caller)
