Generate random string of characters
Usage
rstring(n = 1, length = 20, include.extra = FALSE, include.num = FALSE)
Arguments
- n
Number of random strings to generate
- length
Number of characters in each random string
Include symbols like !#^*?
- include.num
Include numbers?
Examples
rstring(1)
#> [1] "cPjQYskAfCyJTHXtWVHh"
rstring(5, length=30, include.extra=TRUE)
#> [1] "aIF#joUj@kitxCmbdeyOjAUQoM^pcw" "S^YhPhNfCIQ*%K$!ORtbFIFFrll@%E"
#> [3] "OiLVVGBJ&^*dl)BP*q^LsF&jEdIWGs" "BUKLhskdh@GYZ^jT!Mi&*NG!pQgXas"
#> [5] "M^ZpxaMm@S)LAfCnXAKJN$NfK*mwuT"