Util Tools logo Util Tools
수학 도구

랜덤 숫자 및 난수 생성기

최소값과 최대값을 지정하여 추첨 및 게임에 필요한 무작위 숫자를 즉시 뽑아냅니다.

  • 100% 무료
  • 가입 불필요
  • 브라우저에서 로컬 실행
-
History: -

Why crypto.getRandomValues() beats Math.random()

Math.random() uses a pseudorandom algorithm that is predictable if the seed is known. crypto.getRandomValues() uses the operating system’s cryptographically secure entropy source, making it truly unpredictable and suitable for security-sensitive applications. Every number on this page is generated with the Web Crypto API.

사용 가이드

Generate random numbers, securely

This tool produces random numbers in several modes: a single value in a range, a set of unique numbers (no repeats), a list that allows duplicates, dice rolls, coin flips, and lottery picks. Crucially, it draws from the browser's Web Crypto API rather than Math.random(), so the results are cryptographically secure rather than predictable.

Pseudorandom vs. truly random

Most everyday random functions are pseudorandom: an algorithm produces a sequence that looks random but is fully determined by a starting seed, so it can in principle be predicted or reproduced. Cryptographically secure generators, like the one this tool uses, gather unpredictable entropy from the operating system, making the output suitable for anything where guessability matters, such as picking a fair winner or generating a token.

Numbers with or without repetition

The distinction matters depending on your task. A dice roll allows repetition, because rolling the same number twice is normal. A raffle draw or lottery needs unique numbers, because the same entry should not be picked twice. This tool offers both, so you can draw a set of distinct winners or a list where duplicates are allowed, as the situation requires.

Common uses

Random numbers drive giveaways and prize draws, sampling and shuffling, games and dice (including polyhedral dice like the d20 used in tabletop role-playing), decision-making coin flips, and quick lottery-style picks. Because each generation is independent and unbiased, every outcome in your chosen range has an equal chance.

최종 업데이트: 2026년 9월

Frequently Asked Questions

완전한 무작위가 보장되나요?
네, 브라우저의 Web Crypto API를 사용하여 편향 없는 난수를 생성합니다.