This command will print the current time in 24-hour format, multiply the hours, minutes, and seconds together, and save the result to a file called /tmp/random_number.txt.
date +%T | awk -F':' '{ print int($1) * int($2) * int($3) }' | tee /tmp/random_number.txt