This is non-regex version of using a one-line text trigger:
on *:TEXT:$($iif(!rand == $strip($1),$1)):#:{
it strips control codes and trigger on the command !rand only.