Random Number Generator for Integers and Decimals Online
Random Number Generator creates random integers or decimal numbers within a range you choose. By default, it uses crypto.getRandomValues with rejection sampling to avoid modulo bias and provide cryptographically secure output. You can switch to seeded mulberry32 for reproducible, non-secure results, request unique values, sort them, and choose any output base for integers. BigInt support covers large ranges.
Random Number Generator is a browser-based tool for creating random integers or decimal numbers within a range. It offers a quick way to prepare values for testing, examples, and other development tasks without manually making each number. Choose the kind of output you need, generate values, and copy the results.
By default, generation uses crypto.getRandomValues with rejection sampling, which avoids modulo bias and provides cryptographically secure random output. If you need repeatable results instead, switch to the seeded mulberry32 PRNG; its output is reproducible but not secure. You can also request unique values with no repeats, sort the results, and select any output base for integers. BigInt-aware handling supports large ranges.
Integers are whole numbers, while decimal numbers include a fractional part, so the right choice depends on what your code expects. Integer output can also be represented in a base other than the usual decimal base, which is useful when a task needs a different numeral representation. These options make the generator useful for preparing test data, fixtures, seed data, and repeatable examples.
The tool runs entirely in your browser: values are processed on your device, and nothing is uploaded, stored, or sent to a server. It works offline after the page has loaded, so you can continue generating numbers without a network connection. Developers and DevOps engineers can use it for quick one-off values or reproducible non-secure output, while keeping the generation workflow simple.
Step 1: Choose a range and whether you need integers or decimal numbers. The generator creates values within the range you specify.
Step 2: Set the generation options. Use the default crypto.getRandomValues method or switch to seeded mulberry32 when you need reproducible, non-secure output.
Step 3: Choose whether to generate unique values or sort the results. For integer output, you can also select any output base.
Step 4: Generate the numbers, then copy the values you need for your code, tests, or data.
Use case: Prepare random number values for tests, fixtures, or seed data without typing each value by hand.
Use case: Generate a whole batch of values at once when setting up sample data or test inputs.
Use case: Use the default cryptographically secure random output when you need values that are properly random rather than guessed or manually typed.
Use case: Switch to seeded mulberry32 when you need reproducible, non-secure values for a repeatable test or development example.
Use case: Request unique values when duplicate numbers would make a test fixture or sample set less useful.
Use case: Sort generated values or choose a different base for integer output when preparing values for a specific development task.