human
What is a good Python program to randomly choose one element from an array.
assistant
Here is a Python program to randomly choose one element from an array of arrays

import random

def random_choice(array):
    """Randomly choose one element from array."""
    return array[random.randint(0, len(array) - 1)]

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

# Calling the function
print((random_choice(array)))

#Example Output
# 10

#Remember to inspect code for bugs.