A quick question about the Embed API

Here is a JS Only example

<html>
<body>
  <!-- Add a placeholder for the Twitch embed -->
  <div id="twitch-embed"></div>

  <!-- Load the Twitch embed script -->
  <script src="https://embed.twitch.tv/embed/v1.js"></script>

  <!-- Create a Twitch.Embed object that will render within the "twitch-embed" root element. -->
  <script type="text/javascript">
    let channels = ['a','b','c','d'];
    let channel = channels[Math.floor(Math.random()*channels.length)];
    new Twitch.Embed("twitch-embed", {
      width: 854,
      height: 480,
      channel: channel
    });
  </script>
</body>