def METHOD_NAME(text, low, high, space=False):
    """sample randomly from input text with a minimum length of low and maximum length of high"""
    space = " " if space else ""
    return space.join(random.METHOD_NAME(text, random.randint(low, high)))