code: function() {
        this.candidates = []; // flush, if any
        for(var i=0;i<this.num_candidates;i++) {
          var cand = this.sampleCandidate();
          this.candidates.push(cand);
        }
      }
docs: sets this.candidates with this.num_candidates candidate nets