How to draw a jagged line?

Is there a way to draw a jagged line with one of the tools (pencil,pen etc) A jagged line like a “z” kind of like if you zoom in on the edge of a bitmap that doesn’t have good resolution? Thanks in advanced