This command will generate a random number between 1 and 100, using the value of the variable 'r' as the seed for the random number generator.
awk -v r="$(shuf -i 1-100 -n 1)" 'BEGIN{srand(r);print int(rand()*100)}'