I have a python  list of some items   with in dataset get function . List has got just 3 to 5 elements.
Is there a function that can select distinct elements from  list for every dataset item in a new epoch .
Say get (i1)  epoch 1 ,select an element x
get(i1) epoch 2 ,select element y from list
Once all elements done then elements can be reselected in subsequent epochs .
Random.sample and shuffle dint guarantee selection of different elements before all elements are exhausted.