Skip to contents

Generate a random string

Usage

randomString(n = 10L)

Arguments

n

integer(1). Number of characters to return. Length of string.

Value

character(1).

Note

Updated 2023-08-01.

See also

  • https://stackoverflow.com/questions/42734547/

Examples

x <- randomString()
print(x)
#> [1] "1B0NjSPalw"