
Last chance! 50% off unlimited learning
Sale ends in
rstring()
makes a string that is statically extremely likely to be unique (using default options).
rstring(n, x = 12, filesafe = TRUE)
Character.
Numeric integer: How many strings to make (default is 1).
Numeric integer: Number of letters and digits to use to make the string. Default is 12, leading to a probability of two matching random strings of <3.7E-18 if filesafe = TRUE
and <3.1E-22 if FALSE
.
Logical: If TRUE
(default), make file-safe names (leading character is a letter).
rstring(1)
rstring(5)
rstring(5, 3)
Run the code above in your browser using DataLab