vootkit
GuideEveryday

How to Generate Random Numbers for Draws and Tests

Choose whether repeats are permitted according to what the numbers represent.

Editorial illustration representing the Random Number Generator workflow.
On this page4 sections

Choose whether repeats are permitted according to what the numbers represent.

Use the Random Number Generator alongside this illustrative example.

A practical example

For a die simulation, repeated values from one to six are valid. For assigning five distinct seats numbered one to ten, use unique results instead. A request for eleven unique numbers from that ten-number range is impossible, so first compare the requested count with the available range.

Check the result

Record the range and repeat rule before drawing. Do not rerun a selection simply because the first result is inconvenient; that changes how the selection procedure works.

Try a comparison

Switch off uniqueness for a die simulation and notice that repeated rolls become possible. Switch it on for distinct seat assignments. Neither setting is universally more fair; the appropriate one follows the rule for the task.

What this does not establish

This general-purpose random tool is not a source of credentials or a certified lottery mechanism. Use an appropriate security generator for secrets.

Report unclear guidance or a result that needs checking.

Vootkit tools

Try the tools from this guide

About the author

The Vootkit team

Practical guides from the people building Vootkit's browser-based PDF, image, video and productivity tools.

Stay updated

Work smarter with Vootkit

Get practical guides, new tools and useful workflows in your inbox.