'Initialise the packet morpher with the given distribution `dist\'.
If `dist\' is `None\', a new discrete probability distribution is
generated randomly.'

def __init__(self, dist=None):

    if dist:
        self.dist = dist
    else:
        self.dist = probdist.new((lambda : random.randint(const.HDR_LENGTH, const.MTU)))
