Drawing a random path?

Hello. I want to make character movement like this, where movement is restricted along a 2D pathway, where the pathway is not just a straight line. I know that this is fairly simple to do using iTween, but how can I make the path randomly generated (within some constraints, so that the path fits within the camera's viewing) and have the path be visable to the player and not just inside Unity? Thanks(

Have you seen this example yet?