Wybór bez zastępcy Python

import numpy as np

# choosing 2 random items without replacement - no repetition.
exampleList = ['a', 'b', 'c']
sampled_list = np.random.choice(exampleList, 2, replace=False)
Adventurous Addax