Get random time vector from an interval
random_time_vector(
size,
min_time = "00:00:00",
max_time = "23:59:59",
resolution = "seconds",
unique = FALSE
)
integer, vector length
character, beginning of the time interval to sample from
character, ending of the time interval to sample from
character, one of "seconds", "minutes", "hours", time resolution
boolean, should the output be unique?
random_time_vector(12, "12:23:00", "15:48:32")
#> [1] "15H 29M 35S" "14H 71M 20S" "12H 56M 30S" "15H 23M 8S" "14H 30M 47S"
#> [6] "12H 41M 18S" "14H 78M 45S" "14H 79M 47S" "13H 69M 6S" "12H 42M 45S"
#> [11] "13H 69M 10S" "13H 58M 37S"