Play random sound from RAW, on Button click
I am relatively new to Kotlin. I want to play a random sound from my RAW folder, every time I click the play button. There are about 13 sound file in my RAW folder.
mMediaPlayer = MediaPlayer.create(this, R.raw.d)
mMediaPlayer?.start()