+ 2

God dam

Why the hell there isn't any way for TRULY random number without system time... its stupid...

27th Oct 2017, 9:46 PM
Guy293
Guy293 - avatar
13 Answers
+ 14
What he is telling you is that random numbers don't magically appear, there is always a method of how you're generating that "random" number.
27th Oct 2017, 10:03 PM
AgentSmith
+ 20
thanks @ all, its a good question and interesting answers 👍😉
28th Oct 2017, 4:43 AM
tooselfish
tooselfish - avatar
+ 19
Even with system time the numbers generated are not truly random. But to answer your question. It has to do with the algorithm used to generate said numbers. See the following article for more information. https://en.m.wikipedia.org/wiki/Mersenne_Twister
27th Oct 2017, 9:54 PM
jay
jay - avatar
+ 16
A computer can not generate 'true' random numbers. You can get pretty close with hardware based number generators. (TRNG) These use 'noise' to create unpredictable results. https://en.m.wikipedia.org/wiki/Hardware_random_number_generator
27th Oct 2017, 10:02 PM
jay
jay - avatar
+ 9
Ha!
28th Oct 2017, 2:44 AM
jay
jay - avatar
+ 8
It can if you come up with a working algorithm. Nobody has managed it yet. Personally, I'm not sure I could generate random numbers myself without a computer. I've never had a complaint about C's algorithm (C++ uses the same one.)
27th Oct 2017, 10:09 PM
John Wells
John Wells - avatar
+ 8
a rendering of your imprecation https://m.imgur.com/gallery/JzmFuK5
28th Oct 2017, 2:34 AM
seamiki
seamiki - avatar
+ 5
thx
8th Dec 2017, 2:42 AM
Vyshnav Vishnu
Vyshnav Vishnu - avatar
+ 4
If you want a better random generator, use the <random> header for C++11 and above.
27th Oct 2017, 11:45 PM
aklex
aklex - avatar
+ 2
So you are telling me that pc can't random numbers?
27th Oct 2017, 9:56 PM
Guy293
Guy293 - avatar
+ 2
interesting subject! you might find this website useful. https://www.random.org
28th Oct 2017, 1:32 PM
Kustaa
+ 1
Good to know Thanks
27th Oct 2017, 10:03 PM
Guy293
Guy293 - avatar