random_port: Choose a random TCP port.

Description Usage Arguments Value Examples

View source: R/pprof.R

Description

Choose a random TCP port that is unlikely to be occupied by another process.

Usage

1
random_port(lower = 49152L, upper = 65355L)

Arguments

lower

Integer of length 1, lower bound of the port number.

upper

Integer of length 1, upper bound of the port number.

Value

Port number, positive integer of length 1.

Examples

1

proffer documentation built on July 26, 2021, 5:08 p.m.