votes
    Preparing search index...

    Class RandomCandidates<C>

    Pick a candidate at random, regardless of the ballots

    Type Parameters

    • C extends string

    Hierarchy

    • RandomMethod<C>
      • RandomCandidates
    Index

    Constructors

    Properties

    candidates: C[]
    rng: () => number
    isRandom: true
    needsBallot: boolean = false
    needsMatrix: boolean = false

    Methods

    • Returns C[][]

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns Method<D>

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns D[][]