Comment 1 for bug 1275728

Revision history for this message
Raffles (robert-finking) wrote :

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 :-)