How to play a random audio file in automation

I am trying to create an automation which plays an audio file when I open a door sensor.

I created a media folder in HASS with random AI voice files of celebrities saying the phrase I’d like them to when this automation is triggered.

I don’t want them to constantly repeat the same one voice and file, how would I create a randomizer when it comes to playing that audio file?

Something like this should work, simply list the files and add the random element to the end:

  - service: media_player.play_media
      media_content_type: music
      media_content_id: |
        {{ ['/media/local/morning/morning1.mp3', 
            '/media/local/morning/morning12.mp3'] | random}} 
      entity_id: media_player.kitchen_hub

I keep getting UpPnp errors