The quotation is off on this like. Did you mean something like the following?
```sh
echo "export SECRET_TOKEN=$RANDOM" >> $HOME/.bash_profile
```