Randomly select a number between 0 and 1000, then use curl to download the contents of http://example.com and save it to a file called output.txt in the home directory.
shuf -i 0-1000 -n 1 | xargs curl -o ~/output.txt http://example.com