This command will generate a random number between 1 and 100, and then export it as an environment variable called NR. It will then echo "Hello World" using the NR variable.
shuf -i 1-100 -n 1 | xargs -I{} echo "export NR={} ; echo 'Hello World'" | sh -s