Random Number Generator

The generator draws integers from the minimum to the maximum inclusive. With 1 to 6 and a count of 1 the result is one of six values. With 6 numbers and no repeats from 1 to 49 each value appears at most once.

This is not a lottery ticket and not a fortune wheel. The number of subsets is on the combinations page.

Inputs

Enter the minimum, the maximum, and how many numbers to draw. The range is closed: both ends can appear.

Result

Enter a range. The drawn numbers appear here.

How it works

The generator draws integers from the minimum to the maximum inclusive. With 1 and 6 the possible values are 1, 2, 3, 4, 5, and 6. A count of 1 returns one of those values. The next click draws again.

When you ask for several numbers and leave repeats on, each place is independent. Three numbers from 10 to 20 can repeat the same value. That is not a range error.

No repeats builds a set where each value appears at most once. Six numbers from 1 to 49 fit in 49 possible values. Ten numbers from 1 to 5 without repeats do not, because the range has only 5 places.

This is not a lottery ticket and not a fortune wheel. The numbers stay in the browser. Combinations C(n, k) count subsets. They do not pick which numbers appear.

The browser uses crypto.getRandomValues when that interface exists. Minimum and maximum must be integers. 1.5 shows an error. A range from −10 to 10 includes zero.

The count is a value from 1 to 100. An empty field inserts 1. This is not a randomness laboratory and not an official draw.

Range

result ∈ {minimum, minimum + 1, …, maximum}

The draw is uniform on that set. With no repeats the generator draws without replacement, so the count cannot exceed maximum minus minimum plus one.

How to use it

  1. Enter the minimum and the maximum, for example 1 and 6.
  2. Enter 1 in the count field when you need one value.
  3. Click Draw. The result is an integer from 1 to 6 inclusive.
  4. When you want several distinct numbers, type the count and turn on no repeats. From 1 to 49 with a count of 6 the set does not repeat a value.
  5. This is not a lottery. Compare the result with your own rule, not with a ticket.

Range 1 to 6 inclusive

The generator draws integers from the minimum to the maximum. With 1 and 6 both ends belong to the set.

range
The set from minimum to maximum. 1 to 6 has six numbers. 10 to 20 has eleven.
inclusive
Both ends can appear. 1 and 6 are possible, not only 2, 3, 4, and 5.
no repeats
Each value at most once. 6 from 1 to 49 fits. 10 from 1 to 5 does not.

Examples

Example 1

  • Minimum 1, maximum 6
  • Count: 1
  • Repeats allowed

one integer from 1 to 6

What result do I get from 1 to 6 with a count of 1? One integer from that set. The next click draws again.

Example 2

  • Minimum 1, maximum 49
  • Count: 6
  • No repeats

6 distinct integers from 1 to 49

Six numbers without repeats from 1 to 49. This is not a lottery ticket. The next click gives another set.

Example 3

  • Minimum 10, maximum 20
  • Count: 3
  • Repeats allowed

three integers from 10 to 20

Three independent integers from 10 to 20 inclusive. The same value can return.

Related calculators

Frequently asked questions

What result do I get from 1 to 6?

One integer from 1 to 6 inclusive when the count is 1. The next click can repeat or change, because repeats are allowed.

Are 1 and 6 included?

Yes. The range is closed. With minimum 1 and maximum 6 the possible values are 1, 2, 3, 4, 5, and 6.

How do I draw 6 distinct numbers from 1 to 49?

Set minimum 1, maximum 49, count 6, and turn on no repeats. This is not a lottery ticket and not an official draw.

What if I want 10 numbers without repeats from 1 to 5?

The result shows an error. Without repeats the count cannot exceed the range length, here 5.

Is this a fortune wheel or a lottery?

No. The generator returns integers from the range you typed. It does not place a bet and it does not spin a wheel.

Is the result truly random?

The browser reads bytes from crypto.getRandomValues when that interface exists. This is not a NIST lab and not a state draw.

Do negative numbers work?

Yes. A range from −10 to 10 includes zero and both sides of zero. Minimum cannot be greater than maximum.

Does a comma in 1,5 work?

No. The generator accepts integers only. 1 and 6 are fine. 1.5 shows an error.

How many numbers can I draw at once?

From 1 to 100. An empty count field inserts 1.

How is this different from combinations C(n, k)?

Combinations count how many subsets exist. Here the result is the drawn numbers, not the number of ways.

Sources

A uniform draw on the integers from the minimum to the maximum inclusive.

Page updated in 2026.