randomにある

random.sample

というものを使うと良さげ

https://docs.python.org/3/library/random.html#random.sample

If the population contains repeats, then each occurrence is a possible selection in the sample.

母集団に繰り返しが含まれる場合、それぞれの出現はサンプルで選択される可能性があります。とのことなのでユニークな要素で構成されたリストであることを確かめるためにset関数とか使うと安全かもしれませんね

使い方はこんな感じ

import random

test_list = [0,1,2,3,4,5,6,7,8,9]
random.sample(test_list, 3)
# [8, 3, 4]

"""
ユニークな要素で構成されたリストであることを確かめるためにset関数を使う
"""

# 5を重複させる
test_list_2 = [0,1,2,3,4,5,5,5,6,7,8,9]
test_list_2 = list(set(test_list_2))
test_list_2
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

random.sample(test_list_2, 3)
# [7, 3, 1]