Monu Tools

Tạo số ngẫu nhiên

Tạo số ngẫu nhiên trong bất kỳ khoảng nào, có hoặc không có bản trùng, bằng tính ngẫu nhiên an toàn.

Cách dùng Số ngẫu nhiên

  1. 01

    Đặt giá trị tối thiểu và tối đa và bạn muốn bao nhiêu số.

  2. 02

    Chọn liệu có cho phép trùng lặp và cách sắp xếp.

  3. 03

    Nhấn Tạo và sao chép các số.

What it makes

A random number generator that returns whole numbers in any range you set, optionally with no duplicates and optionally sorted, using the browser's secure randomness so the results are genuinely unpredictable.

Everything runs locally with nothing sent to a server, and each run produces a fresh set, since there is no fixed seed to reproduce.

Options explained

You choose the minimum and maximum and how many numbers you want. The output can allow repeats, or be made unique, in which case the count is capped at the size of the range since you cannot draw more distinct numbers than exist in it.

How the randomness works

The randomness comes from crypto.getRandomValues, the browser's cryptographically secure generator, rather than a simple pseudo-random function, so the numbers are not predictable from one another.

Good uses and limits

That makes it well suited to casual draws and decisions: picking a raffle or giveaway winner, choosing a random participant, rolling for a game, sampling rows for a spot check, or just breaking a tie.

For official lotteries and gambling, certified hardware random generators are legally required; this tool is for everyday, informal randomness rather than regulated draws.

Câu hỏi thường gặp

Các số ngẫu nhiên đến mức nào?

Chúng dùng trình tạo ngẫu nhiên an toàn về mật mã của trình duyệt (crypto.getRandomValues), phù hợp cho trò chơi, bốc thăm và quyết định.

Tôi có thể chỉ lấy số duy nhất không?

Có. Tắt "cho phép trùng lặp" để lấy các số khác biệt. Số lượng khi đó bị giới hạn ở kích thước của khoảng.

Nó có tốt cho xổ số hoặc rút thăm không?

Nó tuyệt cho bốc thăm thông thường và chọn người thắng. Đối với xổ số chính thức, cần trình tạo phần cứng được chứng nhận.

Nhúng công cụ này

Thêm công cụ này vào trang web của riêng bạn. Sao chép đoạn mã bên dưới; nó tự động cập nhật.

<iframe src="https://monu.tools/embed/vi/random-number-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

Công cụ liên quan