Random Date Generator

Choose a start and end date and how many dates you want, and the generator picks random dates in that range using your browser’s cryptographic random numbers. Limit it to weekdays, prevent repeats, sort the list, pick a date format and copy the results.

Weekdays optionNo repeats

How the random date generator works

The tool lists every date from the start to the end date (both included), removes weekends if you ask, and then picks dates at random using your browser’s cryptographic random number generator. With No repeats, it shuffles the list and takes the first dates, so every date is equally likely and none repeats.

Probability with random dates

If a range has N dates and you pick one, each date has a 1 ⁄ N chance. A full non-leap year has 365 dates, so a random date in it has a 31 ⁄ 365 ≈ 8.5% chance of being in January.

Picking with repeats allowed can give the same date twice. This is the idea behind the birthday problem: with 23 random dates from a 365-day year, the chance that at least two match is about 50.7%.

Uses

  • Test data for spreadsheets and software.
  • Random practice problems: “What day of the week is this date?”
  • Raffle or schedule draws.
  • Statistics lessons on sampling.

Counting dates in a range

Dates from March 1 to March 31 include both ends, so there are 31 − 1 + 1 = 31 dates. In general, inclusive count = end − start + 1.

To count days between two dates, use the days between dates calculator.

Random dates and probability quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. How many dates are from April 1 to April 30, inclusive?

Found a mistake? Let us know!

2. One date is picked from a 365-day year. Chance it is July 4?

Found a mistake? Let us know!

3. About what percent of a non-leap year’s dates fall in January?

Found a mistake? Let us know!

4. How many weekdays are in a typical week?

Found a mistake? Let us know!

5. About what fraction of dates are weekend days over a long range?

Found a mistake? Let us know!

6. With 23 random birthdays, the chance of a match is about:

Found a mistake? Let us know!

7. Inclusive count of dates from day 10 to day 20 of a month:

Found a mistake? Let us know!

8. Picking without repeats from 5 dates, how many orders are possible for all 5?

Found a mistake? Let us know!

9. A random date is drawn from a 366-day leap year. Chance it is February 29?

Found a mistake? Let us know!

10. In ISO format, March 5, 2027 is written:

Found a mistake? Let us know!

Frequently asked questions

How do I generate a random date?

Choose a start and end date and how many dates you want, then press Generate dates.

Can I get only weekdays?

Yes. Tick Weekdays only to skip Saturdays and Sundays.

Can the same date appear twice?

Only if you untick No repeats.

How random are the dates?

They use the browser’s cryptographic random generator, so each eligible date is equally likely.

Can I copy the list?

Yes. Press Copy list and paste it anywhere.

Related calculators

Browse all calculators

Related to This Article

What people say about "Random Date Generator - Effortless Math"?

No one replied yet.

Leave a Reply