Random date generator
Set the start and end dates and how many you need, and the tool draws days with an equal chance for every day in the range, both ends included.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter from, to, how many dates, no repeats and draw number.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
Days in range D = (end - start) in days + 1, and each date = start + a uniform whole number from 0 to D - 1, so one day has a 1 / D chance.
Example
Inputs: From = 2026-01-01, To = 2026-12-31, How many dates = 1, No repeats = yes, Draw number = 1. Result: Date: Friday, March 6, 2026 (2026-03-06); Days in range: 365; Chance of one day: 0.274%.
Limits and caveats
- Dates use the Gregorian calendar and are listed oldest first.
- Holidays and weekends are not excluded.
Questions about this tool
Are the start and end days included?
Yes, both ends count, so 1 January to 31 December 2026 holds 365 days.
Are leap years handled?
Yes. Days are counted on the real calendar, so 2024 has 366 days.
Why are the dates sorted?
It makes them easier to read and copy, and sorting does not change which dates were drawn.
