UUIDgenerate

0th

Percentile

Generate UUID

UUIDgenerate generates a new Universally Unique Identifier. It can be either time-based or random.

Keywords
manip
Usage
UUIDgenerate(use.time = NA, n = 1L)
Arguments
use.time

logical, if TRUE then time-based UUID is generated, if FALSE then a random UUID is generated, if NA then random one is generated if a sufficiently reliable source of random numbers can be found, otherwise a time-based UUID is generated.

n

integer, number of UUIDs to generate. Must be in [0, 2^31)

Value

String, UUID in lowercase form.

Aliases
  • UUIDgenerate
Examples
# NOT RUN {
UUIDgenerate()
UUIDgenerate(TRUE)
UUIDgenerate(FALSE)
## see if the randomness is any good
length(unique(UUIDgenerate(n=1000)))
# }
Documentation reproduced from package uuid, version 0.1-4, License: MIT + file LICENSE

Community examples

jmwoolley@gmail.com at Sep 19, 2019 uuid v0.1-2

UUIDs = data.frame(matrix(ncol = 150, nrow = 10)) for (i in c(1:10)){ for (j in c(1:150){ UUIDs[i,j]=paste("{",UUIDgenerate(FALSE),"}",sep="") } }