Efficient way to randomly pick a color channel in materials?

How about this?

7 Likes