Support for expect and $RANDOM commands