index.js
function (type) {
    var examples = this.getExamples(type);
    return examples[Math.floor(Math.random() * examples.length)];
  }
function (type) {
    var examples = this.getExamples(type);
    return examples[Math.floor(Math.random() * examples.length)];
  }
Get one random example for type