rndstr: Generate random strings

View source: R/rndstr.R

rndstrR Documentation

Generate random strings

Description

Generate a vector of random alphanumeric strings each of an arbitrary length.

Usage

rndstr(n = 1, len = 8)

Arguments

n

Number of strings to generate (default 1). Will attempt to coerce to integer value.

len

Length of strings to generate (default 8). Will attempt to coerce to integer value.

Value

Character vector of random strings.

Author(s)

Alex Chubaty

Examples

set.seed(11)
rndstr()
rndstr(len = 10)
rndstr(n = 5, len = 10)
rndstr(n = 5)

achubaty/amc documentation built on June 10, 2025, 1:10 p.m.