View source: R/check_seed.R View source: R/_slack.R
check_seed_word | R Documentation |
Check if a random seed generates a specific word (only letters, no blanks)
check_seed_word(seed, size, word)
seed |
random seed, used in set.seed(seed) |
size |
number of characters of word, used in sample(..., size = size) |
word |
word to check: may contain only lower-case letters, no blanks |
TRUE if seed generates the word, FALSE otherwise
check_seed_word(19421956, 5, "merry") # TRUE
check_seed_word(64927, 4, "xmas") # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.