SO, I am looking for a way to iterate over a list of elements in loop mode, except that I want the loop to repeat “randomly”. that is, I don’t want the loop to go through 0,1,2,3, m + 1 ... n, I want him to select it in some random order and still run the loop for all the elements.
Here is my current loop code:
for singleSelectedItem in listOfItems:
item = singleSelectedItem.databaseitem
logging.info(str(item))
please let me know if this makes no sense;)
source
share