powered by
ramdonly pair players using reservoir sampling method.
randompair(players, k, cores = 1)
dataframe
vector, indicating a list of players.
numeric, indicating how many players each player will be paired with.
numeric, indicating the number of CUP cores to be used for parallel
JVitter, J. S. (1985). Random sampling with a reservoir. ACM Transactions on Mathematical Software (TOMS), 11(1), 37-57.
players <- c(1, 'a', 'c', 4, 7, 2, 'w', 'y', 3, 0, 8) pw <- quickPWCR::randompair(players = players, k = 3)
Run the code above in your browser using DataLab