The Free Collection

Published November 4, 2026

How to Pick a Random Date Between Two Dates

Count every day from your start date to your end date, including both ends. Then pick one of those days with equal odds. For June 1 to August 31, 2026, that is 92 days, so each date has a 1 in 92 chance, about 1.09%. The Ranzr random date page does the picking for you.

Home page of Ranzr
Ranzr, ranzr.com

What does a fair random date between two dates mean?

A fair pick gives every day in the range the same chance. No day is favored. The first and last day count too.

People often skip this. They pick a random month, then a random day. That is not fair. A day in a 28-day month would get a bigger chance than a day in a 31-day month.

The right way is to pick from all the days at once. Each day is one equal slot.

How many days are in my date range?

Use this formula:

Number of days = end date − start date + 1

The +1 counts the start day. Without it, you lose one date. Jan 1 to Jan 1 is one day, not zero.

The chance for each date is 1 divided by the number of days.

Worked example: a random date from June 1 to August 31, 2026

Say you want a random day for a summer outing. The range is June 1 to August 31, 2026.

MonthDays
June30
July31
August31
Total92

Each date has a 1/92 chance, which is about 1.09%.

Now check weekends. June 1, 2026 is a Monday. August 31, 2026 is also a Monday. That is 91 days later, which is exactly 13 weeks.

  • 13 full weeks hold 13 × 5 = 65 weekdays and 13 × 2 = 26 weekend days.
  • The extra last Monday adds 1 weekday. That makes 66 weekdays.
  • Weekdays: 66 + weekend days: 26 = 92. The total checks out.

So the chance of a weekend date is 26/92, about 28.3%. The chance of a weekday is 66/92, about 71.7%. If you need a weekend, a plain random pick will miss it more than two times in three. Pick again, or narrow the range.

How can I do it by hand?

You can do this with a number picker.

  1. Count the days in the range. Here that is 92.
  2. Pick a whole number from 1 to 92.
  3. Day 1 is your start date. Add the number minus 1 days to it.

Example: you get 40. Day 1 is June 1, day 30 is June 30, and day 31 is July 1. Day 40 is July 10.

This works, but counting across months is easy to get wrong. A date tool avoids that.

Things that trip people up

  • Leap years. A range with February in a leap year such as 2028 has 29 days in that month, not 28.
  • Day of the year. A full year has 365 days, or 366 in a leap year. A random day of the year is a pick from that whole count.
  • Repeat dates. Each pick is independent. The same date can come up twice in a row. That is normal for random picks.
  • Special days. If some days are not allowed, such as holidays, shrink the range or pick again.

How to use the Ranzr tool

Open the random date page. Choose a start and end date. Click to generate. You can also ask for a random day of the year with no range.

The page says each day in the range has an equal chance. Results are generated in your browser. To double-check, count the days with the formula above and see that your date fits inside the range.

Frequently asked questions

Can the same random date come up twice?

Yes. Each pick is independent, so a date can repeat. If you need several different dates, remove each one from the range after you pick it.

Is picking a random month and then a random day fair?

No. Days in shorter months get a higher chance. Pick from all days in the range at once so each one has the same odds.

How many days are in a random day of the year pick?

There are 365 days in a normal year and 366 in a leap year. Each day has a 1 in 365 or 1 in 366 chance.

Keep reading