Skip to contents

Create a random string of specified length

Usage

randString(n, length)

Arguments

n

number of strings to create

length

length of string to create

Value

one more random string of specific length

Examples

# Task 1: create 1 random string string of length 5
randString(n = 1, length = 5)
#> [1] "yX51j"

# Task 2: create 5 random string string of length 10
randString(n = 5, length = 10)
#> [1] "rj7X37oX2E" "55nvd18hlS" "XXc3Bmsclr" "Bw8kugBRNE" "x906MpeLsn"


# Task 3: create 4 random string string of length 16
randString(n = 4, length = 16)
#> [1] "5B2nG3y60slXr0O9" "UYE7CNJCD6jnEGf1" "BS7Tigxuy9if38Dn" "9v20bdfe1SUg44uZ"