import random
import math


def random_iqp_wires(n_wires):
    """Create a random set of IQP wires.

    Returns a list of either 1, 2, or 3 distinct integers
    in the range of n_wires.

    Args:
        n_wires (int): Number of wires of the device.

    Returns:
        List[int]: The IQP wires.
    """
    # The global seed was fixed during benchmark construction
    # so this is actually deterministic
    a = random.random()
    return random.sample(range(n_wires), math.ceil(3 * a))