sampleStr: Generates (pseudo)random strings of the specified char length

View source: R/toolbox.R

sampleStrR Documentation

Generates (pseudo)random strings of the specified char length

Description

Generates (pseudo)random strings of the specified char length

Usage

sampleStr(n_char, sample_chars = c(letters, LETTERS, 0:9))

Arguments

n_char

A integer, the number of chars to include in the output string.

sample_chars

A vector of characters to sample from. Includes the lowercase and uppercase English alphabet and 0-9 by default.

Value

A string.

Examples

sampleStr(10)

toolbox documentation built on Sept. 22, 2022, 1:09 a.m.

Related to sampleStr in toolbox...