I am writing a bash script to randomly generate password from a file.I need to read/output 3-5 line from that file so I can use those lines to generate password. Find out that shuf is perfect to finish the task. It has an option -n so the command output at most #'s lines

for example

```
shuf -n 5 filename

```

randomly outputs 5 line.

Anyone knows how to output not just 5 but 3 to 5 line by using shuf? Thanks!