Display the first number (between 10 and 50) of lines from the file /etc/passwd, then display the last number (between 3 and 10) of those lines.
head -n $(shuf -i 10-50 -n 1) /etc/passwd | tail -n $(shuf -i 3-10 -n 1)