Generate random numbers by hand?

AI Thread Summary
Generating random numbers by hand is challenging, as true randomness is difficult to achieve without electronic means. The discussion highlights the use of algorithms like linear congruential generators for creating pseudo-random numbers, which can simulate dice rolls when multiplied by the desired side number. While these algorithms can produce sequences that pass statistical tests for randomness, they are ultimately deterministic. The conversation also touches on the philosophical aspect of randomness and the need for a non-deterministic process to achieve true randomness. Overall, while methods exist for generating pseudo-random numbers manually, achieving true randomness remains complex.
mishima
Messages
576
Reaction score
43
Hello, my calculator (sharp el-w516) can generate random fractions like 237/431. I was curious if there was a way to do this by hand.

I would like to be able to roll any sided die by multiplying the random fraction by the side number. For example if I wanted to roll a d20 I could take the fraction and multiply by 20 and round to nearest to simulate a dice roll.

I vaguely understand how random numbers are generated using properties of electronics so maybe its impossible to do solely by hand. I was just wondering if there was a way to do it without even tables or anything.
 
Mathematics news on Phys.org
If you want to generate random numbers you of course first need to think about what distribution you want.

If for instance, which is maybe what you mean, you want to draw random numbers uniformly from an interval (a,b), then there are several algorithms that can do so. For instance linear congruential generators, which have the form:

u_n=\frac{s_n}{M}, s_{n+1}=(As_n+C)mod M

The difficulty is choosing A,C, M such that the period is large, but M=2^31-1, A=7^5, C=0 is a good choice, for instance.

On a more philosophical level, you can ask: what is randomness? Since there is a mechanism, true random cannot be achieved. You can test for uniformity properties that you would desire from random numbers.
 
Hi, thanks for the quick response. I've never had a discrete math course so the formula is a bit foreign to me. Are you saying that u sub n is a coordinate pair or is that 2 separate formulas? Can you show me an example using that formula if my interval is (1, 20)? Thank you.
 
Use Icosahedron dice (20) faces number the sides 0-9 use the numbers as digits, use multiple dice or multiple throws.
 
Sorry, I guess that formula was pretty trivial. I understand now, like if I chose all 7s it would be:

s1 = (7*7+7) mod 7 = 0

u1= 0/7 = 0

So this would be like a 1 on a d20 roll.

Now I would just need a way to enter the sequence (with larger multipliers, etc) at a random point, so that I'm not always going through the same numbers.
 
mishima said:
Sorry, I guess that formula was pretty trivial. I understand now, like if I chose all 7s it would be:

s1 = (7*7+7) mod 7 = 0

u1= 0/7 = 0

So this would be like a 1 on a d20 roll.

Now I would just need a way to enter the sequence (with larger multipliers, etc) at a random point, so that I'm not always going through the same numbers.

You should realize that these are pseudo-random numbers, meaning that although they satisfy all known statistical tests for randomness, they're actually not random. They're generated by an algorithm. If you ran the algorithm a hundred times you'd get the same sequence of "random" numbers every time.

If you want psuedo-random numbers those are easy. But generating a truly random number is very difficult. You'd have to start with some completely nondeterministic physical process, like the decay of an atomic nucleus or some such.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top