I just picked up image processing in python this past week at the suggestion of a friend to generate patterns of random colors. I found this piece of script online that gene
color = lambda : [random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)]