Random Number Generatorمولّد الأرقام العشوائية
Generate one or many random numbers within any range.ولّد رقماً عشوائياً واحداً أو أكثر ضمن أي نطاق.
Settingsالإعدادات
Resultالنتيجة
How random number generation works here
كيف يعمل توليد الأرقام العشوائية هنا؟
This generator uses your browser's built-in pseudo-random number source (JavaScript's Math.random) to produce values evenly distributed across the range you set. For whole numbers it maps the random value onto every integer between your minimum and maximum inclusively, and for decimals it keeps two decimal places for readability while still covering the full range uniformly.
The "unique numbers only" option is useful for tasks like drawing raffle winners, shuffling a small list, or picking non-repeating quiz questions — the generator keeps rejecting duplicates until it has enough unique values, and it will stop automatically once it has exhausted every possible integer in a small range so it never runs forever. Without that option, numbers can repeat, which better simulates independent random events like dice rolls or lottery-style draws where repetition is expected.
It's worth being clear about what this tool is not: Math.random() is a pseudo-random generator suitable for games, sampling, classroom demonstrations, and everyday decision-making, but it is not cryptographically secure. Don't use it to generate passwords, encryption keys, security tokens, or anything where an attacker predicting the sequence would cause real harm — those use cases need a cryptographic random source instead. For everyday "pick a number," "who goes first," or "randomly select a name from a list" needs, this generator is fast, private (nothing leaves your browser), and easy to repeat as many times as you like.