\setupexternalfigures[location=default]

\starttext
  %\externalfigure[hacker]
  \getrandomnumber\T{0}{20}
  \rotate[rotation=\numexpr\T-10\relax]{\externalfigure[dummy]}
\stoptext
