Search for a tool
Random Numbers

Tools to select numbers randomly, make random draws of numbers according to several criteria and let randomness/chance decide.

Results

Random Numbers -

Tag(s) : Fun/Miscellaneous, Algorithm, Combinatorics

Share dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Random Numbers tool. Thank you.

# Random Numbers

## Random Numbers Selection

### How many numbers?

Tools to select numbers randomly, make random draws of numbers according to several criteria and let randomness/chance decide.

### How to make a random number selection?

Indicate the type of numbers to draw:

- according to an interval: select numbers between $a$ and $b$

Example: Draw $N$ digits between $1$ and $100$

- according to a size: select numbers with a certain number of digits

- according to a list: select numbers from a given list

### What is a random number sample without replacement?

A draw without replacement specifies that a picked number can not be picked a second time.

Example: Draws of $3$ numbers between $1$ and $5$ could be $4,2,3$ or $1,5,2$ but never $1,2,2$ (the $2$ having been picked a first time, it is not put back into play)

During a draw without remplacement, it is not possible to pick more than $N$ numbers in a range of size $N$

Example: A selection of $100$ numbers between $1$ and $20$ is impossible without replacement

### What is a random number sample with replacement?

A draw with replacement specifies that a picked number may be picked one or more times.

Example: Draws of $3$ numbers between $1$ and $5$ could be $4,2,3$ or $1,5,2$ but also $1,2,2$ (the $2$ having been picked a first time, it is put back into play and can stand out)

During a draw with replacement, it is possible to pick more than $N$ numbers in a range of size $N$

Example: A selection of $100$ numbers between $1$ and $20$ is possible with replacement

## Source code

dCode retains ownership of the source code of the script Random Numbers online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Random Numbers script for offline use on PC, iPhone or Android, ask for price quote on contact page !