+ 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?
6 Respostas
+ 6
Good point. I've heard this before so I too cannot think of an instance of something being truly random.
+ 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.
+ 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&cf=1
+ 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
0
Yes it is possible
0
import random
for i in range(5):
value=random.randint(1,6)
print(value)