About the random number generator All the phenomena and processes in our world there are occasional and regular. Let's try to look at the random processes in terms of programming, because of cases that occur naturally and so we all know. In programming, to generate random numbers developed a special mechanism, which is called – a random number generator. Of course, this generation does not act randomly, all the phenomena tied to program the timer. Random values just obtained from the system time.
Therefore correct to refer to this mechanism – the generator of pseudo-random values, the truth algorithms result of new features sampling really goes out randomly. It is true in every single programming processes interact with the user by means of operators. Let's look at them. Operators rand, srand in programming in C plays an important role register respectively to the detriment of the attractiveness of this title, function names are written with a lowercase letter. So we should not write as clearly and as accurately. What would a random number generator returns us to a random value – uses the rand. Let's look at an example of how exactly we should use our function: int j = rand (); Ie as you can see, the rand function returns a result. The random number is changed in