using bash variable inside awk

method 1

awk 'BEGIN { print "'$RANDOM'" }'

method 2

echo | awk '{print "'$RANDOM'"}'

method 3

awk -v var=$RANDOM 'BEGIN { print var }'
Advertisements