What is a pseudo random integer?

I am reading book C. In the function description, rand()they say:

randreturns a pseudo-random integer ranging from 0to RAND_MAX. RAND_MAXdepends on the implementation, but no less 32767.

I do not understand; What is a pseudo-random integer?

Thank.

+3
source share
6 answers

Informally, a pseudo-random number is a number that is not truly random, but for most purposes is “fairly random”.

- . , , . , , . , , , , , , , . , , .

. , , , . , , . , , .

+7

wiki:

(PRNG), (DRBG), , .

, ( ), - .

+3

, , , - , , , .

, . , , . , .

+2

, , , " " (, , ). , ( , ):

", , , . , , - , , "

7. ? , ? -10? , ( xkcd 221).

, , , , , ( ) , . , , .

+2

psuedorandom, .

=

, , , , .

0

, , , .

, , ​​ , , , , . , . , PRNG , , , , .

, - , .

0

Source: https://habr.com/ru/post/1796614/


All Articles