This command will randomly select one user from the /etc/passwd file, then extract the user's shell path from the file, and finally display the contents of the user's motd.sh file.
shuf -r -n 1 /etc/passwd | cut -d ':' -f 7 | xargs -I % cat %/motd.sh