Class RandomCandidates

Pick a candidate at random, regardless of the ballots

Hierarchy

  • RandomMethod
    • RandomCandidates

Constructors

Properties

candidates: string[]
rng: (() => number)

Type declaration

    • (): number
    • Returns number

isRandom: true = true
needsBallot: boolean = false
needsMatrix: boolean = false

Methods

  • Split tied candidates in a ranking.

    Parameters

    • rankingToTieBreak: string[][]

      a ranking in which ties will be attempted to be broken by the current voting system

    Returns string[][]

Generated using TypeDoc