title: Illustrator script (or action) to make 1 random layer visible per group
body: <p>Similar to this question but with adobe Illustrator: <a href="https://stackoverflow.com/questions/55839953/photoshop-action-to-make-1-random-layer-visible-within-each-group">Photoshop action to make 1 random layer visible within each group</a></p>
  <p>I want to use an illustrator script (or action) to generate images that are composed of a random sampling of grouped layers.</p>
  <ol>
  <li>With in each of the 12 groups, I want to make 1 layer per group visible.</li>
  <li>Export the visible layers as an svg. Bonus points if I can change the file format.</li>
  <li>Repeat the process n times</li>
  </ol>
  <p>I know this is similar to the code linked above though I want to be able to use illustrator instead of photoshop if possible.</p>