Randomly, with movement like the IOS game 'Racer King' - https://apps.apple.com/gb/app/racerking/id1528539994
I'm not aware of any tutorials, but this can be done using a 'Move', 'Touch Rotate' & 'Jump' node. Be sure to select the 'Follow Rotation on the Move node.
The only thing that you might need is a node to detect how far to the left/right you swipe to increase the speed of the rotation.