Find all files with a name ending in ".mp" (or ".mpeg", ".mp3", etc.), shuffle them randomly, select one, and move it to the directory "/media/music".
find ~ -type f -name "*.mp*" | xargs shuf -n 1 | xargs mv -t /media/music