\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\tikz \draw [->, decorate, decoration={random steps, post length=0pt}] (0,0) -- (1,0);
\def\postlength{0pt}
\tikz \draw [->, decorate, decoration={random steps, post length=\postlength}] (0,0) -- (1,0);
\tikz \draw [->, decorate, decoration={random steps, post length/.expand once=\postlength}] (0,0) -- (1,0);
\end{document}