How to define a tuple of randint without repeating code?

Viewed 1520

I often get to use tuples of randint for color-values and such like

(a, b, c) = randint(0, 255), randint(0, 255), randint(0, 255)

when I thought there has to be a better way - is there?

2 Answers
Related