I have some list of data, for example
some_data = [1, 2, 4, 1, 6, 23, 3, 56, 6, 2, 3, 5, 6, 32, 2, 12, 5, 3, 2]
and i want to get unique va
You could sample the set
import random set(random.sample(my_set, 5))
The advantage of this you'll get different numbers each time