title: How can I make my page choose a random video I have (or in a sequence) as a background video?
body: <p>Right now, this is the simple line I have in HTML where it just puts an MP4 file I have in my folder as the background:</p>
  <pre><code>&lt;video src=&quot;res2.mp4&quot; muted=&quot;&quot; autoplay=&quot;&quot; loop=&quot;&quot; style=&quot;width: 1922px; height: 1081.12px;&quot;&gt;&lt;/video&gt;
  </code></pre>
  <p>Let's say I have five MP4 files and I want to achieve the situation where I refresh the page and a different background appears every time. Bonus points if it doesn't choose one of the five <em>completely</em> randomly, because I don't want it that it can choose file #1 two times. I would love to see a random one each time. Or it can be in a sequence: #1 -&gt; #2 -&gt; #3 -&gt; #4 -&gt; #5 -&gt; #1 etc.</p>
  <p>My HTML/CSS/JS knowledge and experience is limited, though. Would this need much JS?</p>
  <p>Would love to hear your ideas.</p>