Radar89, возможно, и этот пример (рандомный) пригодится Вам:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
function makeLogo() {
let logo = ["<img src='https://placehold.co/500x150/ff0000/ffff00?font=playfair-display&text=One'>", "<img src='https://placehold.co/500x150/ff0000/ffff00?font=playfair-display&text=Two'>", "<img src='https://placehold.co/500x150/ff0000/ffff00?font=playfair-display&text=Three'>", "<img src='https://placehold.co/500x150/ff0000/ffff00?font=playfair-display&text=Four'>", "<img src='https://placehold.co/500x150/ff0000/ffff00?font=playfair-display&text=Five'>"];
let random = Math.floor(Math.random() * logo.length);
let logos = logo[random];
let logosElement = document.getElementById("logos").innerHTML = logos;
}
window.onload = makeLogo;
</script>
</head>
<body>
<div id="logos"></div>
</body>
</html>