powered by
Generates a simulation of voting according to a uniform law, returns voters preferences
generate_unif_continuous(n_voters, n_candidates, min = 0, max = 1)
scores
integer, represents the number of voters in the election
integer, represents the number of candidates in the election
int, the minimum value of the range of possible scores (by default 0)
int, the maximum value of the range of possible scores (by default 1)
voting_situation<- generate_unif_continuous(n_voters=10, n_candidates=3, min=0, max=10)
Run the code above in your browser using DataLab