+ 20

Can a program be able to generate truely random numbers?

4th Oct 2019, 2:15 PM
SR ​
SR ​ - avatar
6 ответов
+ 8
Jtrh ok by the mean of physical phenomena i can do that on microcontrollers and on some programable boards boards in small range but if you have to create that on sololearn then how you will do that?
4th Oct 2019, 2:46 PM
SR ​
SR ​ - avatar
+ 7
No but you should be able to get a random number generated by the noise from your hardware eg: /dev/random for Linux
4th Oct 2019, 2:33 PM
jtrh
jtrh - avatar
+ 4
Anirudh Sharma hmm Thnx. Good suggestion
15th Dec 2019, 5:43 AM
SR ​
SR ​ - avatar
+ 2
A software can't do that it contains a pattern it might be unimaginably long pattern but It can't be 100 percent random
24th Jul 2020, 6:49 AM
Ved Thaker
Ved Thaker - avatar
- 1
Read this carefully, though this is not quiet an answer: In maths, 1÷0 is Not Defined. But if we go for a small number, we get interesting results... 1÷0.00000001 = 10^8 As a matter of fact we have a special topic in maths( called limits ) to deal with such results. Lim x→0 1/x = ∞ Now to your question: If i use math.rand i get a predictable number*(say). Lets call it R›1 If i use math.rand to generate a random key and then use math.rand, i get a somewhat predictable number. R›2 If i use math.rand(math.rand(math.rand()*f)*f), i get a not-so-predictable number. R›3 I, a mere weak human, doesnt posses such power as thanos to be able to predict R›4 and beyond. Even R›3 will require 21.1415 hours for me. So use a computer and generate R›100 (which should be enough) Remember: Lim x→∞ R›x = not at all predictable number.
15th Dec 2019, 5:31 AM
Anirudh Sharma
Anirudh Sharma - avatar