def create_random(self, ballots_resource, candidate_count=None, ballot_count=None):
        if ballot_count is None:
            ballot_count = 20

        candidates = make_standard_candidate_names(candidate_count)

        choices = range(1, candidate_count + 1)
        chooser = BallotGenerator(choices=choices)
        chooser.add_random_ballots(ballots_resource, ballot_count)

        name = "Random Contest"
        notes = self.make_notes(candidate_count, ballot_count)
        contest = ContestInput(name=name, notes=notes, candidates=candidates,
                               ballots_resource=ballots_resource)
        return contest
Create a random contest.
dataset/ETHPy150Open cjerdonek/open-rcv/openrcv/contestgen.py/ContestCreator.create_random