Pseudo-random number and a true random number

Pseudo-random number of small projects

Guessing game // C language guessing game

https://blog.csdn.net/csdn_kou/article/details/79785709

The C language random number generation ultra Detailed

https://blog.csdn.net/csdn_kou/article/details/79788815

In the above article, a fixed function has been fixed is to generate a random result, but the introduction of time seed can meet our requirements.
The above method for generating random numbers are two to get through a seed, he was met our needs random numbers, but he is not entirely true random numbers. Under certain scenarios, it can reproduce the random number. Or that we generated random number is to follow the law, but the law of his relatively long period.

True Random Number

Physical phenomena generated random number is truly random number. Toss example, dice, wheel, electronic noise components, like nuclear fission.

  1. http://random.org/ provides a true random number service on the Internet since 1998,
    it generates a true random number with atmospheric noise
  2. Linux can be seen as a yellow files device file cd / dev && ls
    utilizing random number generating machine noise, noise sources include various hardware operating speed, speed of the user and computer interaction. Such intervals keystrokes, mouse movement speed, and a specific block of time of interuption of the IO request response time.
  3. In 2011, Ottawa, Canada physicist Ben Sussman and diamonds using laser pulses to create a true random number.
    Sussman's laboratory for a few billionths of a second laser pulse irradiation of diamonds, and out into the direction of the laser changes.
  4. In April 2012, https: //phys.org/news/2012-04-fastest-random-silence.html
    Gets a random number from the research group of subatomic vacuum noise development tools can monitor the random noise vacuum by laser and thereby generate truly random numbers.
Published 257 original articles · won praise 223 · views 320 000 +

Guess you like

Origin blog.csdn.net/csdn_kou/article/details/103150774