Selecting Random File in AppleScript
Because you're using the POSIX path syntax, you have to use POSIX file to get the object at that path:

tell application "Finder"
    get some file of (folder (POSIX file "/Volumes/Expansion Drive/Photos"))
end tell