RandomBasis

Time to draw

Random Time Generator

Pick a random time of day — limit the window, round to a step, choose 12 or 24 hour.

Runs locally in your browser. Nothing you generate is ever sent to a server.

Press "Generate" to draw a time.

Round to

Format

About this random time generator

Press Generate and a clock time appears. By default any minute of the day can come up, but you can narrow the window, round the result to a sensible step, and switch between 24-hour and 12-hour display.

Limiting the window

Set a From and a To time to keep the draw inside a period that matters — office hours, a shift, an opening window. If the To time is earlier than the From time, the window is treated as running past midnight, so 22:00 to 02:00 draws from the late evening and the small hours together.

Rounding to a step

A time like 14:37 is fine for test data but awkward for a schedule. The step control rounds the pool before the draw, so choosing 15 minutes means only :00, :15, :30 and :45 can come up. That is usually what you want when the result is going into a calendar rather than a database.

12-hour and 24-hour

Results can display as 14:45 or as 2:45 PM. The 24-hour form sorts correctly as text and avoids the midday and midnight confusion that catches people out with 12:00 AM. The 12-hour form is what most people read aloud.

Common uses

How the randomness works

Every valid minute in the window is listed first, after rounding to the chosen step, then one is drawn from that list using your browser's cryptographic random source with rejection sampling. Batches without repeats use a Fisher-Yates shuffle over the same list.

How do I generate a random time?

Press Generate and a time comes up. By default it can be any minute of the day, from 00:00 to 23:59.

Can I limit it to working hours?

Yes. Set the From and To times, for example 09:00 to 17:00, and only times inside that window are drawn.

Can I round to the nearest 15 minutes?

Yes. The step buttons round the draw to every minute, every 5, 15 or 30 minutes, or to the hour.

Does it support 12-hour time?

Yes. Switch the format and results are shown as 2:45 PM instead of 14:45.

Can I draw several times at once?

Yes. Raise the quantity and, with No repeats on, every time in the batch will be different.

Is the time actually random?

Yes. Every valid time in the window is listed first, then one is drawn using your browser's cryptographic random source.