You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query>
    <random>
      <page id="591" ns="0" title="Domestic Biogas Construction Training Kenya (KENBIM)" />
      <page id="294" ns="0" title="Experiences with MyWiki" />
    </random>
  </query>
</api>