generate_token(n_words, method = c("pseudorandom", "random"))
pseudorandom
) uses the
function sample
to simulate the dice rolls. Numbers
generated this way are not truly random but are a decent
approximation.random
) uses the random
package
that gets truly random numbers by converting atmospheric noise
into numbers. The main issue is that someone could monitor your
network and intercept the numbers that are being used. If you are
concerned about this, use a physical dice.
Note that if you want to use the random
method, you will
need an internet connection. The service that provides these
random numbers (http://www.random.org) has daily quotas,
don't go too crazy (if you need to, you can purchase additional
bits, see http://www.random.org/quota).