Learn R Programming

quickcode (version 1.0.6)

randString: Generate a random string

Description

Create a random string of specified length

Usage

randString(n, length)

Value

one more random string of specific length

Arguments

n

number of strings to create

length

length of string to create

Examples

Run this code
# Task 1: create 1 random string string of length 5
randString(n = 1, length = 5)

# Task 2: create 5 random string string of length 10
randString(n = 5, length = 10)


# Task 3: create 4 random string string of length 16
randString(n = 4, length = 16)

Run the code above in your browser using DataLab