Random Title Music?

Hey! Sorry if this is a vague question or a question that's already been asked (I checked beforehand and couldn't find any answers) but is there a way to add more than one song for your title screen? Like is there a way for it to be randomized? I appreciate any answers in advance!
Here is a plugin. Edit the list of themes.
PHP:
Scene_Title.prototype.playTitleMusic = function() {
    //AudioManager.playBgm($dataSystem.titleBgm);
    AudioManager.playBgm({
       name: (function(){
           var music = [
                   "Battle1",
                   "Castle1",
                   "Dungeon1",
                   "Field1",
                   "Ship1",
                   "Theme1",
                   "Town1"
               ];
           return music[
               Math.floor(Math.random()*music.length)
           ];  
       })(),
       pan: 0,
       pitch: 100,
       volume: 100
    });
    AudioManager.stopBgs();
    AudioManager.stopMe();
};
Here is a plugin. Edit the list of themes.
PHP:
Scene_Title.prototype.playTitleMusic = function() {
    //AudioManager.playBgm($dataSystem.titleBgm);
    AudioManager.playBgm({
       name: (function(){
           var music = [
                   "Battle1",
                   "Castle1",
                   "Dungeon1",
                   "Field1",
                   "Ship1",
                   "Theme1",
                   "Town1"
               ];
           return music[
               Math.floor(Math.random()*music.length)
           ]; 
       })(),
       pan: 0,
       pitch: 100,
       volume: 100
    });
    AudioManager.stopBgs();
    AudioManager.stopMe();
};
Wow! And I'm sorry to ask: where do I put this? I put it in the advanced bar or the script bar?
I always edit quick plugins into the MadeWithMv.js, but you can also save it to your js/plugins folder and activate it as a separate plugin if you don't mind one more bloating the list of plugins.

Original thread: https://forums.rpgmakerweb.com/threads/random-title-music.76563/