Is it possible to generate truly Random number sequence? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

Is it possible to generate truly Random number sequence?

challenge with Random Sequence Generation: A sequence is said to be truly Random iff, 1. There is no statistical dependency (no corrcorrelation among bit strams) 2. It is unpredictable and 3. Can't be reproduced The nature of Computers ( being finite state)can't it make it impossible task? And is there any other measure of being randomness?

23rd Apr 2019, 7:30 AM
Byk
6 Answers
+ 6
Good point. I've heard this before so I too cannot think of an instance of something being truly random.
24th Apr 2019, 12:56 AM
Christine
Christine - avatar
+ 6
Most of the time in computers, what is generated is a pseudorandom number which fails at least a couple of the rules you mentioned for a truly random number.
24th Apr 2019, 2:15 AM
Sonic
Sonic - avatar
+ 5
There are different companys who are doing this trough input from nature. Ether using radioactove materials to get randomnes or by using lavalamps. https://www.google.com/url?sa=t&source=web&rct=j&url=https://blog.cloudflare.com/randomness-101-lavarand-in-production/amp/&ved=2ahUKEwixq-Di2uXhAhULyqQKHXvhAfUQFjAEegQIBRAB&usg=AOvVaw1-N1XJzXfinD974FBT-Hb7&ampcf=1
23rd Apr 2019, 7:38 AM
Dragonxiv
Dragonxiv - avatar
+ 1
No, philosophically speaking true randomness can only be achieved out of nowhere but the current way we generate random numbers these days are pretty much almost unpredictable hence they are as almost as good as true random numbers. Most random number generators provided by libraries are actually pseudorandom numbers coming from the computer devices, in Linux we call it /dev/random whereby the “randomness” is generated via a bunch of bits and bytes scraped from the running OS
24th Apr 2019, 2:35 PM
Adrian Legaspi
Adrian Legaspi - avatar
0
Yes it is possible
24th Apr 2019, 2:59 PM
Ajazahmed I Turki
Ajazahmed I Turki - avatar
0
import random for i in range(5): value=random.randint(1,6) print(value)
24th Apr 2019, 3:01 PM
Ajazahmed I Turki
Ajazahmed I Turki - avatar