DEV Community

Discussion on: How can you make computer generate a random number without using algorithm just like our brain do.

Collapse
 
harshitrathod profile image
Harshit rathod • Edited

First, There is no such thing as Random in our universe.

When you guess any random number there are so many hidden factors behind it. If someone suddenly stops me and ask for a random number, the answer can be my favorite number or amount of my last purchase or any value from time.
There are thousands of factors there which decide random number.

When your brain neurons try to find an answer from any knowledge base you have which will be systematic. and this pathfinding traversal within neurons will be different for all humans. Also, your knowledge base is changing with time so it is possible that I don't get similar information from the same place again.
Consider at some place X in your brain you have information about your last taxi number and when you give a random number, brain took it from place X.
After some time place X contain other information like your movie time so even we reach to X, we didn't get the same answer.

Considering all this thing I can say your question should look like
How can you make computer generate a random number using algorithm just like our brain do.

We can try to solve this by machine learning. Guess for a random number and create data sheet. Add some basic feature like time, your mood :)

WAALLA! you made computer to generate random number just like you.

Again, this is hypothetical and you required thousands of feature and data to predict.

Collapse
 
tobias_salzmann profile image
Tobias Salzmann

To my knowledge, there is true randomness in a lot of places where quantum mechanics are involved. Put a radioactive source in front of a geiger counter, and you got a sequence of events that are randomly spaced in time.

Collapse
 
itzikh profile image
itzik-h

Like one of these.
A good (expensive, military grade) TRNG will will use Radioactive decay which is a true random phenomena.