def shuffle_color_order(self):
        """Shuffle order of colors on widgets."""
        ### retrieve colors from widgets; colors
        ### must be inside a list so they can be
        ### shuffled
        colors = list(self.get_colors())

        ### shuffle them
        shuffle(colors)

        ### then set them back on each widget and update
        ### color values on controls for display/edition
        self.update_colors(colors)
Shuffle order of colors on widgets.
nodezator/colorsman/editor/panel/colorsop.py