Tool to generate digits randomly, according to several criteria before leaving the chance to decide (0 or 1 for head or tail, 1 to 6 for a die, etc.)
Random Digits - dCode
Tag(s) : Fun/Miscellaneous, Algorithm
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!
Choose which digits are selectable, by default the choice is among all digits from 0 to 9.
dCode will then make a random selection and return one of the possible digits.
Example: 10-digit draw between 0 and 9: 9,7,6,4,3,2,4,7,9,0 or 1,3,3,7,6,2,4,3,7,5
To draw numbers (not only digits from 0 to 9), use the random selection and random number picker tools.
Perform a draw between 2 values like 0 and 1 and assign 0 to head and 1 to tail.
Example: Draw of 10 consecutive toss coins: 1,0,1,0,0,1,0,1,1,0
Perform a draw between 6 values (default from 1 to 6).
This kind of generator guarantees an unbiased draw
Select an empty box and enter the formula: =INT(RAND()*10)
Although this kind of book tends to be obsolete, in the past there were books filled with random numbers that were popular with scientists or statisticians.
Today it's rather a book offered as a joke, like here (affiliate link)
dCode retains ownership of the "Random Digits" source code. Any algorithm for the "Random Digits" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Random Digits" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Random Digits" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Random Digits" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Random Digits on dCode.fr [online website], retrieved on 2025-04-15,