+ 2
God dam
Why the hell there isn't any way for TRULY random number without system time... its stupid...
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.
+ 20
thanks @ all, its a good question and interesting answers đđ
+ 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
+ 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
+ 9
Ha!
+ 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.)
+ 8
a rendering of your imprecation
https://m.imgur.com/gallery/JzmFuK5
+ 5
thx
+ 4
If you want a better random generator, use the <random> header for C++11 and above.
+ 2
So you are telling me that pc can't random numbers?
+ 2
interesting subject! you might find this website useful.
https://www.random.org
+ 1
Good to know
Thanks