在線即時計算器 · 純前端本地秒算 · 零數據上傳

🧮 Random Number And Letter Set 計算機

專業免費的 Random Number And Letter Set 計算機。純前端本機毫秒級計算、零資料上傳、極致隱私保護。提供詳細公式推導、實例示範與常見問答。

即時推算結果 (Computed Output)
17 3 32 52 28
專業公認計算模型,即時運算完畢
📜 計算歷史記錄 (試算軌跡)
尚無歷史記錄,每次點擊「計算」將在此留下試算軌跡...

What is the Random Number and Letter Set Generator?

This tool produces a set of one or more randomly chosen items from a range you define. The range can be numeric (such as 1-100) or alphabetic (such as a-j). It is handy for sampling, drawing lots, creating PINs, picking quiz questions, assigning teams, or any task that needs unbiased random selection from a known set.

How to use it

Enter the Sample Size (how many items you want), then the Sample Range in the form START-END. Choose whether to Allow Duplicates (sampling with replacement) and whether to Print Commas between items. Press calculate to get a freshly drawn set in random order.

If both ends of the range are whole numbers it works in numeric mode; if both are single letters it works in letter mode, preserving the case of the first letter.

The formula and algorithm

The candidate population is every value in the inclusive range: for numbers, all integers from low to high, giving high - low + 1 values; for letters, every character code from the lower to the higher code. Each item is picked uniformly with index = \lfloor random × remaining \rfloor. Without duplicates the population is shuffled (Fisher-Yates) and the first N items are taken, so every result is distinct. With duplicates each pick is independent and repeats can occur.

Draw = Sample Size \ items from a population of size N
where ≤ft{ \begin{aligned} N &= | high - low | + 1 \\ [low,high] &= Sample Range \end{aligned} \right.

Worked example

Sample Size 5, Range 1-100, duplicates No, commas No. The population is the integers 1 through 100 (N = |100 - 1| + 1 = 100 values). Five distinct uniform draws might give: 48 50 62 18 10. With commas on, the same draw reads 48, 50, 62, 18, 10.

使用注意事項與精準校對原則(6 大核心守則)

📐 1. 嚴格對齊輸入量綱與單位

輸入各項數值時請務必確認量綱(例如小時、天數、金額、百分比),避免單位不匹配引發推算偏差。

🔒 2. 純前端本機毫秒級隱私保障

所有計算邏輯 100% 在您的終端瀏覽器內完成,資料絕不上傳伺服器,嚴格守護商業與個人隱私。

📊 3. 符合公認學術與產業計算模型

演算法嚴格遵循國際通用數學公式與標準計算模型,經多重情境交叉核對,數值嚴密精確。

📋 4. 一鍵複製與免登入 PDF 匯出

支援一鍵複製推算結果字串至剪貼簿,亦可直接點擊列印按鈕輸出純淨 PDF 工作報表。

🔄 5. 多情景敏感度動態對比

建議針對極端值與多組預期情景分別試算,觀察輸出數據的波動區間,輔助做出更穩健的決策。

🛡️ 6. 專業諮詢與日常參考免責聲明

本工具運算結果供日常排程、學業研習與事前參考之用,如涉及重大法規或投資決策請諮詢持證專家。

常見問題 (FAQ)

What if I ask for more items than the range holds?
When duplicates are off, the number of results is limited by the range. Asking for 12 distinct digits from 0-9 returns only 10 items.
Are the results sorted?
No. Items appear in the random order they were drawn.
How do I make a 4-digit PIN?
Use Sample Size 4, Range 0-9, duplicates No for four distinct digits, or duplicates Yes to allow repeated digits.