echo $(date -d $(cal | awk 'NF {print $NF}' | shuf | head -n 1) '+%s')

echo the Unix timestamp of a randomly selected date from the current month.
$ echo $(date -d $(cal | awk 'NF {print $NF}' | shuf | head -n 1) '+%s')