Aliases: stri_rand_strings
Keywords:
### ** Examples stri_rand_strings(5, 10) # 5 strings of length 10
[1] "Ha6CCQYFK1" "WwdS9TviUE" "pac0zmWv9Y" "MCfSSvKVxS" "zJb1skmNRv"
stri_rand_strings(5, sample(1:10, 5, replace=TRUE)) # 5 strings of random lengths
[1] "VK" "e10meRMDzt" "M3" "VsOZ" "8aHCxIxWC"
stri_rand_strings(10, 5, '[\\p{script=latin}&\\p{Ll}]') # small letters from the Latin script
[1] "ꟙņᴚ𝼘ɠ" "𝼔ĸǡằṃ" "ɛğꜷᵻʐ" "xᶋꭈſƹ" "ʉḳꝓʦǟ" "ꭐkᴡfdz" "ỻťꭦᶀľ" "ẵᴟẙǡꝺ" [9] "ḩⱬꬽȵꭉ" "ꜷⱶŧħdz"
# generate n random passwords of length in [8, 14] # consisting of at least one digit, small and big ASCII letter: n <- 10 stri_rand_shuffle(stri_paste( stri_rand_strings(n, 1, '[0-9]'), stri_rand_strings(n, 1, '[a-z]'), stri_rand_strings(n, 1, '[A-Z]'), stri_rand_strings(n, sample(5:11, 5, replace=TRUE), '[a-zA-Z0-9]') ))
[1] "koZNap6rMS" "vKFHoOQws2d21" "9avPFcqz6Izb4i" "VyLc8caAbtW5" [5] "azyM3Uo6" "BibUanelJ1" "bT3zYWJ3yofsw" "Zgu720OtSEJdCH" [9] "mV8NutpSGygK" "Rv11nIsq"