Home > Back-end >  The simplest almost impossible cycle (cycle greatly) pseudo random algorithm, only a macro definitio
The simplest almost impossible cycle (cycle greatly) pseudo random algorithm, only a macro definitio

Time:09-27

See b station mommy uncle science of sudden inspiration, ares I7-6700 haven't found is not stable, high performance to run day conditional bosses welcome stability test algorithm,
Can feel good, is to take white piao!!!! The first post, also not too will use BBS, please take care of a lot!
#include
# define GETRAND (* (*) & amp; (seed=seed * (1 - seed) * 4))//is only Yu Xiaoduan storage system, after the big end storage, please take a few bytes
Void main ()
{
Double seed=0.1;//between 0 and 1 decimal, not is 0.5, there are an infinite number of digits can't take, but it is almost impossible to get to the
While (1)
{
Printf (" % d \ n ", the GETRAND);
Getchar ();
}
}
Must give points,,, emmmm, test out repetitive give points!

CodePudding user response:

Can find a few online compiler test

CodePudding user response:

Intel has rdseed, rdrand instruction, rdseed can generate really random number (read internal temperature sensor chip thermal noise data), generates a rdrand rdseed for seed quality pseudo-random number
  • Related