# NOT RUN {
sample_date()
sort(sample_date(n = 10))
sort(sample_date(n = 10, from = "2020-02-28", to = "2020-03-01")) # 2020 is a leap year
# Note: Oddity with sample():
sort(sample_date(n = 10, from = "2020-01-01", to = "2020-01-01")) # range of 0!
# see sample(9:9, size = 10, replace = TRUE)
# }
Run the code above in your browser using DataLab