Find all files with the extension .jpg, shuffle them, take the first one, and move it to the folder images with the same name.
find . -name '*.jpg' | shuf | head -n1 | xargs -I{} echo mv {} ./images/{}