so I tried shuf -n 1 filename in bash and it showed me a random line, but I want to be able to do this on my own website with 2 files and the outputs combined.
shuf -n 1 filename
With paste, shuf and bash's process substitution:
paste -d " " <(shuf -n 1 file1) <(shuf -n 1 file2)
Output (example):
one two three canada