I want to use an Arduino UNO to make my DC motor behave randomly. (randomly moving at different speeds, changing direction). How can I do this?
Well there is random()
once you 'master' that you can learn to use the result to do something 'motory'.
Do you have a DC Motor driver yet? You are going to need one.