import random


def sample_uniform(min_val, max_val, num_samples):
    """Samples from a uniform distribution.

    Samples num_samples integer values from the range [min, max)
    uniformly at random.

    Args:
        min_val (int): Minimum value (inclusive).
        max_val (int): Maximum value (exclusive).
        num_samples (int): Number of samples to be drawn.

    Returns:
        A list of randomly sampled values.
    """
    if num_samples == 1:
        #return random.SystemRandom().randrange(min_val, max_val)
        return random.randrange(min_val, max_val)
    #return [random.SystemRandom().randrange(min_val, max_val)
    #    for _ in range(num_samples)]
    return [random.randrange(min_val, max_val)
        for _ in range(num_samples)]