human
select random items from sample.
assistant
Here is a Python program to select random items from sample samples

import random

def random_sample(sample, n):
    """ Returns a random sample of size n from sample.
    """
    assert isinstance(sample, list)
    assert isinstance(n, int)
    return random.sample(sample, n)

# Enter the sample
sample = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Enter the number of items to be selected
n = 3

# Calling the function
print((random_sample(sample, n)))

#Example Output
# [10, 2, 9]

#Remember to inspect code for bugs.