How would I create a door that needs morse code to open it?

I’m having an error, right know I’m just trying to make the morse code sound to play.
image
image

– I want the morse code sound to be random numbers
image