%RANDVAR := 1D2
IF %RANDVAR = 1 THEN $DEST = @P04
IF %RANDVAR = 2 THEN $DEST = @P05
Remember that it's actually @P4 instead of @P04. You don't need the zero, and I'm not sure whether it'll mess up the code or not if you put it there, but you definitely don't need it there.