Does anyone know of a plug-in that makes the title screen randomly in MZ?

I decided to transplant the ace project I'm producing into mz, and I want to implement the function that I implemented in the ace in mz. I have 5 title screen images, and I want one of them to come out randomly every time I load the game. But I don't know if I can't find it, I don't see a plug-in with this function. Is there anyone who knows?
You could use something like: https://visustellamz.itch.io/event-title-scene
or: https://casper-gaming.itch.io/cgmz-title-system

To simply event your title screen. That way you can simply use a random variable to display your backgrounds.
You can also put a conditional in the function that places the image (though if you want the bg to stay the same if you go to load game or options and return, you'd need to extend it a bit):

Scene_Title.prototype.createBackground = function() {
let titleFile = "";
switch (Math.randomInt(5)) {
case 0:
titleFile = "Beach";
break;
case 1: titleFile = "Bigtree";
break;
case 2: titleFile = "Canyon";
break;
case 3: titleFile = "FlyingIsland";
break;
case 4: titleFile = "Gate";
break;
}
this._backSprite1 = new Sprite(
ImageManager.loadTitle1(titleFile)
);
this._backSprite2 = new Sprite(
ImageManager.loadTitle2($dataSystem.title2Name)
);
this.addChild(this._backSprite1);
this.addChild(this._backSprite2);
};
You can also put a conditional in the function that places the image (though if you want the bg to stay the same if you go to load game or options and return, you'd need to extend it a bit):

Scene_Title.prototype.createBackground = function() {
let titleFile = "";
switch (Math.randomInt(5)) {
case 0:
titleFile = "Beach";
break;
case 1: titleFile = "Bigtree";
break;
case 2: titleFile = "Canyon";
break;
case 3: titleFile = "FlyingIsland";
break;
case 4: titleFile = "Gate";
break;
}
this._backSprite1 = new Sprite(
ImageManager.loadTitle1(titleFile)
);
this._backSprite2 = new Sprite(
ImageManager.loadTitle2($dataSystem.title2Name)
);
this.addChild(this._backSprite1);
this.addChild(this._backSprite2);
};
Thank you for your answer! It's exactly what I wanted!
That won't work with Exclude Unused Files. If you want to use that option, you can modify it a bit:

JavaScript:
/*:
@param titles
@type file[]
@dir img/titles1
@require 1
*/
Scene_Title.prototype.createBackground = function() {
    let titleFiles = JSON.parse(PluginManager.parameters("RandomTitle").titles);
    this._backSprite1 = new Sprite(
        ImageManager.loadTitle1(titleFiles[Math.randomInt(titleFiles.length)])
    );
    this._backSprite2 = new Sprite(
        ImageManager.loadTitle2($dataSystem.title2Name)
    );
    this.addChild(this._backSprite1);
    this.addChild(this._backSprite2);
};

This way also lets you select the images in the Plugin Manager rather than writing their names right in the plugin file. Note that the plugin file must be called RandomTitle.js for this to work, or replace "RandomTitle" in the source with the actual filename (minus the .js).

Original thread: https://forums.rpgmakerweb.com/threads/does-anyone-know-of-a-plug-in-that-makes-the-title-screen-randomly-in-mz.183170/