Description Usage Arguments Value Examples
Selects index of random active or revealed. If type is "reveal", pick index of active to reveal (always random). If type is "pair", pick index of revealed to pair (always random).
1 | pickerRandom(active, revealed, exclude = NA, type = c("pair", "reveal"))
|
active |
numeric vector choices of active player |
revealed |
numeric vector choices revealed by non-active player for next round |
exclude |
integer vector of indices of active to exclude when picking active for type reveal. |
type |
single character, select modality:
|
prob |
single numeric between 0 and 1 |
single numeric
1 2 3 4 | pickerRandom(revealed = 3:4)
pickerRandom(revealed = 5)
pickerRandom(active = 1:5, revealed = 1:5, type = "reveal")
pickerRandom(active = 2, revealed = 2, exclude = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.