| BareProvider | R Documentation |
A NonLocalized Provider that contains all the selection and creation elements, but not the locales. That way we can still inherit an do useful stuff for providers that have no locale.
A NonLocalized Provider that contains all the selection and creation elements, but not the locales. That way we can still inherit an do useful stuff for providers that have no locale.
providerDisplay the provider name.
random_element()pick a random element from vector/list
BareProvider$random_element(x)
xvector or list
a single element from x
random_element_prob()pick a random element with probability from vector/list
BareProvider$random_element_prob(x)
xvector or list
random_int()any number of random integers from a min, max
BareProvider$random_int(min = 0, max = 9999, size = 1)
minthe minimum value. default: 0
maxthe maximum value. default: 9999
sizenumber of values to return. default: 1
random integer
random_digit()random integer between 0 and 9
BareProvider$random_digit()
random_digit_not_zero()random integer between 1 and 9
BareProvider$random_digit_not_zero()
random_digit_or_empty()random integer between 0 and 9 or empty character string
BareProvider$random_digit_or_empty()
random_digit_not_zero_or_empty()random integer between 1 and 9 or empty character string
BareProvider$random_digit_not_zero_or_empty()
random_letter()random letter
BareProvider$random_letter()
numerify()replace a template with numbers
BareProvider$numerify(text = "###")
text(character) a string
lexify()replace a template with letters
BareProvider$lexify(text = "????")
text(character) a string
bothify()both numerify and lexify together
BareProvider$bothify(text = "## ??")
text(character) a string
randomize_nb_elements()Returns a random value near number
BareProvider$randomize_nb_elements( number = 10, le = FALSE, ge = FALSE, min = NULL, max = NULL )
numbervalue to which the result must be near
leresult must be lower or equal to number
geresult must be greater or equal to number
minthe minimum value. default: NULL
maxthe maximum value. default: NULL
a random int near number
print()Print method for provider
BareProvider$print(...)
...ignored by this method
clone()The objects of this class are cloneable with this method.
BareProvider$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.