R Under development (unstable) (2024-09-15 r87152 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > suppressPackageStartupMessages(library(pbdZMQ)) > > min = 49152 > max = 65536 > > rp = random_port(min_port=min, max_port=max) > stopifnot(isTRUE(rp > min) && isTRUE(rp < max)) > > rop = random_open_port(min_port=49152, max_port=65536, max_tries=100) > stopifnot(isTRUE(rop > min) && isTRUE(rop < max)) > > proc.time() user system elapsed 0.20 0.07 0.29