import random

my_set = {1, 2, 3, 4, 5}
random_element = random.choice(list(my_set))
print(random_element)  # یکی از عناصر به صورت تصادفی