powered by
To achieve that different calls of mvcID.new generate distinct IDs, the function returns the current time via Sys.time, appended by a randomly generated serial number.
mvcID.new
Sys.time
mvcID.new(n = 10)
A character scalar representing the created ID.
Length of the serial number.
if (FALSE) { ## Private functions involved. mvcID.new() mvcID.new() Sys.sleep(1.1) mvcID.new() }
Run the code above in your browser using DataLab