Change color every x frames

Hi all,
is there a way to change (randomly) the material/color of an object every two or more frames?
The object is moving along a straight line for some duration.
thanks.

hi, i saw this tutorial a while back, i think you will find the solution in it, he basically use the nodes to produce a random numbers, maybe you can twist it into changing the value of the colors

That’s perfect.
Thanks for the finding.