def METHOD_NAME(n, show_list):
    """Measure the performance of selection sort on a random list."""
    sample_list = list(range(n))  # create a sorted list of n keys
    shuffle(sample_list)  # shuffle them
    print("\nSelection sorting", n, "keys")
    if show_list:
        print("Test list is", sample_list)
    start = time.time()
    key_comparisons_made = selection_sort_count(sample_list)
    end = time.time()
    if show_list:
        print("Selection sort output is", sample_list)
    result = "For selection sort of {} items, {} comparisons of keys were used"
    time_taken = "Time taken: {:.4f} milliseconds elapsed"
    print(result.format(n, key_comparisons_made))
    print(time_taken.format((end - start) * 1000))