I am reading book C. In the function description, rand()they say:
rand()
randreturns a pseudo-random integer ranging from 0to RAND_MAX. RAND_MAXdepends on the implementation, but no less 32767.
rand
0
RAND_MAX
32767
I do not understand; What is a pseudo-random integer?
Thank.
Informally, a pseudo-random number is a number that is not truly random, but for most purposes is “fairly random”.
- . , , . , , . , , , , , , , . , , .
. , , , . , , . , , .
wiki:
(PRNG), (DRBG), , .
, ( ), - .
, , , - , , , .
, . , , . , .
, , , " " (, , ). , ( , ):
", , , . , , - , , "
7. ? , ? -10? , ( xkcd 221).
, , , , , ( ) , . , , .
psuedorandom, .
=
, , , , .
, , , .
, , , , , , . , . , PRNG , , , , .
, - , .
Source: https://habr.com/ru/post/1796614/More articles:msbuild: "compile" context menu item for custom build action in Visual Studio 2010 (in a C ++ project) - visual-studioКак удалить ненужные столбцы в DataGridView? - c#How secure is this hash? (PHP) - securityCan I turn Google Maps into a specific bearing? - androidLambda Expressions and Methods - c #How to change the runtime type of a new instance - javaImage position update - androidHow to create a list of non-transitive dependencies (GCC) - gccHow to check SSL configured and configured correctly on dev? - certificateMatlab sparse matrix question - matlabAll Articles