import random


def should_use(i, page_min, page_percent):
    """ Algorithm to randomly pick pages from a pdf to convert.
        Picks Y percent of pages after the first X is reached.
    """
    if i < page_min:
        return True
    p = random.random()
    return p < (page_percent / 100.0)