http://docs.racket-lang.org/reference/Filesystem.html?q=temp...
Thanks for the tip! I had no idea there could be a better way. Now I find that my use of $RANDOM in shell scripts should be replaced with calls to mktemp as well.
-----