Trình tạo số ngẫu nhiên
Chọn một số nguyên giữa hai giá trị (bao gồm cả hai).
Quyết định
Số
Một số nguyên ngẫu nhiên giữa hai số bất kỳ.
Công bằng ngay từ thiết kế: trình tạo số ngẫu nhiên an toàn của trình duyệt, không thiên lệch. Không có gì rời khỏi trang này.
Lịch sử
Kết quả của bạn sẽ hiện ở đây.
Cách hoạt động
- Nhập hai số nguyên bất kỳ; mọi số ở giữa, kể cả hai đầu, đều có xác suất như nhau.
- Công bằng: mọi kết quả đều đến từ trình tạo số ngẫu nhiên an toàn của trình duyệt (crypto.getRandomValues), không thiên lệch.
- Riêng tư: những gì bạn nhập hoặc rút không rời khỏi trang này. Không cookie, không theo dõi.
Worked example
73
1 – 100
This sample used the default range, 1 to 100, and landed on 73. Both ends can come up, and every number in between was just as likely. The line under the result shows the range.
Options
Choose any two whole numbers, negative ones included; if you swap them, the page puts them in order. The range may hold up to a little over four billion values.
Real uses
Draw a raffle ticket number, pick a page or chapter to read, choose a student by roll number, or pick a secret number for a guessing game.
How the randomness works
The page asks the secure generator for a number below the size of your range and throws away any value from the uneven remainder, so no number is favored. Repeats are possible, as with real dice.