Login Register






C++ True Random Generator filter_list
Author
Message
RE: C++ True Random Generator #5
(12-16-2013, 12:12 AM)The_Joker Wrote: This is far from a truly random number generator. At very best you could call this pseudo-random.

Computers don't understand the concept of random. You need to give them something to start with, then manipulate. In this case, the seed is the system time, which is a poor system, are there are a very finite number of system times available. If you wanted to increase the randomness, you would need to include other seeds such as keystroke patterns and mouse position. Many cryptographic algorithms have been broken due to a weak random number generator.

Of course its not that complex you cant use it in gambling machines or anything like that it but its usefull for game devs or other simple tasks.
[Image: ngT5EVj.png]
wow so binary much 0 very 1

Reply





Messages In This Thread
C++ True Random Generator - by Night Owl - 12-15-2013, 10:42 PM
RE: C++ True Random Generator - by w00t - 12-15-2013, 11:07 PM
RE: C++ True Random Generator - by Night Owl - 12-15-2013, 11:57 PM
RE: C++ True Random Generator - by The_Joker - 12-16-2013, 12:12 AM
RE: C++ True Random Generator - by Night Owl - 12-16-2013, 12:15 AM
RE: C++ True Random Generator - by w00t - 12-16-2013, 12:23 AM
RE: C++ True Random Generator - by cxS - 12-17-2013, 05:20 AM
RE: C++ True Random Generator - by w00t - 12-17-2013, 05:39 AM
RE: C++ True Random Generator - by cxS - 12-17-2013, 05:52 AM
RE: C++ True Random Generator - by Anizeb - 12-17-2013, 06:03 AM
RE: C++ True Random Generator - by w00t - 12-17-2013, 03:46 PM
RE: C++ True Random Generator - by Azrael - 12-17-2013, 07:22 PM
RE: C++ True Random Generator - by cxS - 12-18-2013, 02:02 AM
RE: C++ True Random Generator - by Azrael - 12-18-2013, 03:20 PM
RE: C++ True Random Generator - by cxS - 12-19-2013, 05:35 AM
RE: C++ True Random Generator - by Azrael - 12-19-2013, 08:58 PM