Jak wiele losowego wyboru z listy Python

import random

# Randomly select same sample list every time
alist = [20.5, 40.5, 30.5, 50.5, 70.5]
sample_list = random.sample(alist, 3)
print(sample_list)

# output:
#[40.5, 30.5, 20.5]
Shanti