View source: R/test_seed.R View source: R/_old_seek-seeds-job.R
test_seed | R Documentation |
Test if a given seed returns a sensible text when used to sample()
test_seed(seed, nchar, choices = letters)
seed |
to be used in set.seed(seed) |
nchar |
length of expected text = number of random one character samples |
choices |
what to choose from; defaults to letters; can be c(letters, " ") to allow for phrases |
word / phrase / number generated by the given seed for the given number of characters / digits
test_seed(19421956, 5)
test_seed(64927, 4)
test_seed(6024, 4, choices = 0:9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.