Trying to Move Cylinder Clockwise, Then Counter-Clockwise, Etc. At Random

Hi,

For my game I’m trying to create a cylinder that can move clockwise and then counter-clockwise at random. Is there any way to do this effect? Or am I pretty much stuck having to make the cylinder go only exclusively clockwise or counterclockwise?

Thanks in advance to anybody who can help.