Skip to content
ChanceKit

Random number generator

Inclusive whole numbers, from min through max.

No number yet. Generate to draw one.

Recent numbers

Numbers from this visit show up here.

Each tap is a new pseudorandom draw via crypto.getRandomValues. Not atmospheric noise. How the draw works

About this page

Type a minimum and a maximum and ChanceKit draws a whole number that includes both ends. A range of 1 to 10 can produce 1 and it can produce 10. There are ten possibilities, not nine. You can ask for up to twenty numbers in one tap. Each one is a separate draw, so duplicates are allowed. The presets open common spans: 1–10, 1–100, 1–1000, and 1–6. Negative bounds work on this page if both values are safe integers and the maximum is at least the minimum. The generator refuses a span wider than 2^32 values, because it maps one 32-bit draw and will not quietly bias a huge range. Decimals are out of scope. If you need a die you can see, use the dice roller.

Related

Questions

Are both endpoints included?

Yes. The draw is inclusive. People often write a random range as if the top number were excluded, which is how many programming loops work. This page does the opposite on purpose, and the label says so. If you need 0 through 9, set the maximum to 9, not 10. If you need a d6, 1 through 6 and the d6 roller are the same six outcomes.

What is rejection sampling doing?

A 32-bit value does not always divide evenly into your range. Taking a remainder would make smaller numbers appear slightly more often. The draw uses crypto.getRandomValues in your browser, then rejection sampling so the leftover remainder of a 32-bit value cannot favor the low end. ChanceKit does not claim atmospheric noise, hardware entropy you can audit from this page, or a casino-style provably fair setup. Read the methodology before you use a result for anything that matters. For a power-of-two span the remainder is zero and no value is thrown away. For 1–10, a few values at the top of the 32-bit range are discarded and the draw is repeated.

Can I generate a decimal or a password?

No decimals, and no passwords. The output is a base-10 integer in the range you set. It is not a token, a seed phrase, or a key. Generating secrets in a page you do not control end to end is a bad habit even when the generator is strong. Use a password manager for secrets. Use this page for picking a number you are willing to show the room.

Will the same number repeat?

It can. Twenty draws from 1 to 10 are with replacement. The tool does not remove a number after it appears. If you are assigning unique seats, generate one at a time and strike names yourself, or put the names on the wheel and remove the winner. A random integer is the wrong tool when the constraint is 'each item once.'

Which preset should I start with?

Use 1–10 for a short list, 1–100 when you want a percentage-like integer, 1–1000 for a wider classroom estimate, and 1–6 when you want die results as plain numbers. The preset only fills the boxes. You can change them before you generate. The open generator on this page is the right place for a custom pair such as 20 to 50.

Is this the same product as a true-random number service?

No. Those services advertise physical entropy and a long public history. ChanceKit advertises a transparent in-browser pseudorandom draw and a set of decision tools around it. If a method section in a paper requires atmospheric noise or a third-party log, do not cite this page as that method. Cite it only as a browser utility, and say that plainly.