test_seed: Test if a given seed returns a sensible text when used to...

View source: R/test_seed.R View source: R/_old_seek-seeds-job.R

test_seedR Documentation

Test if a given seed returns a sensible text when used to sample()

Description

Test if a given seed returns a sensible text when used to sample()

Usage

test_seed(seed, nchar, choices = letters)

Arguments

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

Value

word / phrase / number generated by the given seed for the given number of characters / digits

Examples

test_seed(19421956, 5)
test_seed(64927, 4)
test_seed(6024, 4, choices = 0:9)

fjodor/MagicNumbers documentation built on July 27, 2023, 3:21 a.m.