You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <random>
      <page id="15354" ns="0" title="Termin:Hamburg Freifunk Hands On im Attraktor 2018-03-30" />
      <page id="11877" ns="0" title="Termin:Back to Hack 2013-03-26" />
    </random>
  </query>
</api>