I would suggest that Sikuli doesn't need to re-invent the wheel here, python already has a lot of ways of shuffling a list. E.g if you have:
matches=findAll(pat)
Adding just one line (plus an import) will give you what you want:
from random import shuffle
matches=findAll(pat) shuffle(matches)
Simples :-)
I would suggest that Sikuli doesn't need to re-invent the wheel here, python already has a lot of ways of shuffling a list. E.g if you have:
matches= findAll( pat)
Adding just one line (plus an import) will give you what you want:
from random import shuffle
matches= findAll( pat) matches)
shuffle(
Simples :-)