Print a random number between 0 and 10, then print a sequence of numbers from 1 to that random number, separated by semicolons.
awk 'BEGIN { srand() ; print int(rand()*10) }' | xargs -I {} seq 1 {} | tr -s '\n' ';'