human
k random element from array.
assistant
Here is a Python function to k random element from array

import random

def random_element(array, k):
    """Returns k random elements from array.

    :param list array:
    :param int k:
    :rtype: list
    :return:
    """
    return random.sample(array, k)

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

# Calling the function
print((random_element(array, 3)))

#Example Output
# [1, 10, 9]

#Remember to inspect code for bugs.