Random Number Generator

Generate random numbers within a range. Set quantity, decimal precision, step and exclusions, or choose numbers without repeats.

Number generator

What the generator returns

You set a range and a quantity, and the generator returns that many numbers from within the range. The default is one number between 1 and 100, which is what most people arrive looking for.

Beyond that default, the range is only half the story. Step, decimal precision and exclusions all narrow the set of values the generator is allowed to return, and the repeat setting decides whether a value can come back more than once.

Values come from the browser's cryptographic random source, with biased candidates discarded rather than folded back in. Each number in the available set is equally likely, and no previous result changes the next one.

Generate numbers in three steps

Settings apply to the next generation, so adjust and regenerate freely.

  1. Set the lowest and highest values of your range.

  2. Choose how many numbers you need and whether repeats are allowed.

  3. Add decimals, a step or exclusions if the range alone does not describe what you want, then generate.

Decimals, steps and exclusions

These four settings are what turn a range into a precise question.

  • Positive or negative ranges within the supported numeric limits
  • Up to 80 numbers in a single generation
  • A no-repeat mode that draws distinct values from the available pool
  • Decimal precision up to 6 places for measurements and test data
  • A step measured from the minimum — minimum 5 and step 5 allow 5, 10, 15 and so on
  • Up to 1,000 excluded values, for numbers already taken or reserved
  • Ascending, descending or as-drawn output order

Raffle tickets, sampling and test data

The settings matter more than the range in most real uses.

A raffle host draws five distinct ticket numbers between 1 and 500 with repeats switched off.

A teacher generates twenty practice values between 0 and 10 with one decimal place.

An auditor samples eight invoice numbers from a range and excludes the ones already reviewed.

A tester fills a form with ten random quantities in steps of 5 to check rounding behaviour.

A quiz host picks a question number from 1 to 40 and excludes those already asked.

A workshop facilitator generates sample values for a spreadsheet demonstration.

Why a request can come back empty

The range, the step and the exclusions together define a pool of allowed values. With repeats switched off, the quantity you ask for cannot exceed the size of that pool — ten distinct numbers between 1 and 5 is not a request the generator can satisfy, and neither is five distinct multiples of 10 between 1 and 30.

Precision controls which decimal values can be represented; the step determines their spacing. For hundredths between 0 and 1, set precision to 2 and step to 0.01. Increasing precision alone does not enlarge the pool if the step stays unchanged.

Where a generated number is not enough

This is not a password or key generator. Use a dedicated password manager for anything that protects an account.

It is not a certified lottery draw. The randomness is sound, but there is no audit trail a regulator would accept.

With repeats enabled, values are independent and can recur. With repeats disabled, each eligible value appears at most once in the generated batch. For ordering an existing named list, use the list shuffler.

Choosing settings that match your question

  • Switch repeats off for anything that identifies a person or a ticket — two identical winning numbers are a problem, not a coincidence.
  • Use step rather than exclusions when you want multiples: one step value replaces hundreds of excluded numbers.
  • Sort ascending when you are reading numbers out to a room; leave the order as drawn when the sequence itself matters.
  • Check the pool size in your head before asking for distinct values, and widen the range rather than retrying.

Share this tool with friends

A shared session is separate from a quick local run. Set up the tool first; creating a session saves the supported settings so other people can join through a link.

  1. Set the numerical range, quantity, step, precision, excluded values and repeat options.

  2. Sign in or create a Roliq account to own the session; local use does not require an account.

  3. Use the tool’s create/share-session button. The site creates a draft and opens its session page.

  4. From the session page, copy the link or send invitations to your friends or teammates.

  5. Check participant permissions and result visibility, then start the session when everyone is ready.

The session preserves the numeric rules so everyone sees outcomes under the same constraints.

The owner controls the session; viewers and invited participants can do only what their access permits. Do not assume that a link gives everyone host permissions.

Random number questions

How do I get a random number between 1 and 100?

That is the default. Open the generator and press generate — the range is already set to 1–100 with a quantity of one.

How do I generate numbers with no repeats?

Switch off repeats. The generator then draws distinct values, so long as the pool defined by your range, step and exclusions is at least as large as the quantity you asked for.

How many numbers can I generate at once?

Up to 80 in a single generation. For more than that, run the generator again with the values you already have added to the exclusion list.

Can I generate decimals?

Yes, to as many as 6 decimal places. Precision applies to every number in the result, so displayed values use the chosen number of decimal places.

What does the step setting do?

The step is measured from the minimum. With a minimum of 1 and a step of 5, the eligible values are 1, 6, 11 and so on up to the maximum. Set the minimum to 0 or 5 if you want multiples of 5.

How do I exclude specific numbers?

Add them to the exclusion list — up to 1,000 values. Excluded numbers are removed from the pool before the draw, so they can never appear in a result.

Can I sort the numbers?

Yes. Output can come back ascending, descending, or in the order it was drawn. Sorting changes the display only; it does not change which numbers were selected.

Is it random enough for a prize draw?

The source is the browser's cryptographic randomness, which is appropriate for deciding a prize among friends or colleagues. It is not a licensed lottery process, so do not use it where a regulator requires certified draws.