How to set random colors to all segments inside a segmentation?

I would like to make easy to differentiate the segments that are next to each other.

Thank you