首页Home › 随机生成Random Generators
🕐 随机时间生成器Random Time Generator
在指定时间段内随机生成时刻:可跨午夜(如 22:00–02:00),可选 24 / 12 小时制、是否含秒、排序和不重复,均匀分布、加密级随机。Generate random times within a range — including ranges across midnight (22:00–02:00) — in 24- or 12-hour format, with optional seconds, sorting and no repeats; uniform and cryptographically random.
使用说明与常见问题How-to & FAQ
「随机时间生成器」是什么?What is the Random Time Generator tool?
在指定时间段内随机生成时刻:可跨午夜(如 22:00–02:00),可选 24 / 12 小时制、是否含秒、排序和不重复,均匀分布、加密级随机。Generate random times within a range — including ranges across midnight (22:00–02:00) — in 24- or 12-hour format, with optional seconds, sorting and no repeats; uniform and cryptographically random.
如何使用「随机时间生成器」?How do I use the Random Time Generator tool?
在「随机时间生成器」中,按需设置「开始」、「结束」、「数量」、「格式」等选项,然后点击「生成」、「复制」按钮即可。In the Random Time Generator: Set "From", "To", "Count", "Format", then click "Generate", "Copy".
可以跨午夜吗?Can the range cross midnight?
可以。结束时间早于开始时间时视为跨天,例如 22:00–02:00 会在晚上 10 点到凌晨 2 点之间随机生成。Yes — if the end is earlier than the start the range wraps past midnight, so 22:00–02:00 picks times between 10 pm and 2 am.
结果是否均匀?Is it uniform?
是的。所有可能的时刻(按分钟,勾选“包含秒”时按秒)被选中的概率相同,包括开始和结束时刻本身,使用 crypto.getRandomValues 并避免取模偏差。Yes. Every possible time (per minute, or per second with seconds on) is equally likely, endpoints included, using crypto.getRandomValues without modulo bias.
随机结果真的随机吗?Is the randomness truly random?
「随机时间生成器」使用浏览器的 crypto.getRandomValues(密码学安全随机数)生成随机数据,不使用可预测的 Math.random。The Random Time Generator uses crypto.getRandomValues (cryptographically secure randomness), not the predictable Math.random.
「随机时间生成器」免费吗?需要注册吗?Is the Random Time Generator free? Do I need an account?
「随机时间生成器」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Random Time Generator is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.