def pickWosItems(num_total_results, num_subset_results):
    num_in_final_sample = 100
    num_results_per_page = 50
    num_to_sample = int(math.ceil(
        float(num_subset_results * num_in_final_sample) / float(num_total_results)
    ))

    # "id" is the index of the result in the result subset
    subset_result_ids = range(1, num_subset_results)
    ids_to_sample = sorted(random.sample(subset_result_ids, num_to_sample))

    pages_and_ids = []
    for result_id in ids_to_sample:
        page = int(math.floor(num_results_per_page / result_id)) +1
        pages_and_ids.append((page, result_id))

    return pages_and_ids
dataset/ETHPy150Open Impactstory/total-impact-webapp/util.py/pickWosItems/swapped operands of `/`