Is there a way to shufle a group of sprites created with:
I have tried using random.shuffle but it apparently doesn't work on sprite groups.
Since groups are an iterator, you can use:
You should not rely on Python's hashing order to randomize sprites for you. It is not a good RNG.
According to pygame documentation:
I think the best you can do is not to use the Group, and make your own group mechanism. If you need only ordered update then use http://www.pygame.org/docs/ref/sprite.html#pygame.sprite.OrderedUpdates