source/tests/random_line_generator.c
uint32_t pcg32_random_r(pcg32_random_t* rng)
 {
     uint64_t oldstate = rng->state;
     rng->state = oldstate * 6364136223846793005ULL + rng->inc;
     uint32_t xorshifted = ((oldstate >> 18u) ^ oldstate) >> 27u;
     uint32_t rot = oldstate >> 59u;
     return (xorshifted >> rot) | (xorshifted << ((-rot) & 31));
 }
// pcg32_random_r(rng)
//     Generate a uniformly distributed 32-bit random number
pcg32_random_r(rng)
Generate a uniformly distributed 32-bit random number
pcg32_random_r ( rng ) Generate a uniformly distributed 32 - bit random number
uint32_t pcg32_random_r(pcg32_random_t* rng)
 {
     uint64_t oldstate = rng->state;
     rng->state = oldstate * 6364136223846793005ULL + rng->inc;
     uint32_t xorshifted = ((oldstate >> 18u) ^ oldstate) >> 27u;
     uint32_t rot = oldstate >> 59u;
     return (xorshifted >> rot) | (xorshifted << ((-rot) & 31));
 }
uint32_t pcg32_random_r ( pcg32_random_t * rng ) { uint64_t oldstate = rng -> state ; rng -> state = oldstate * 6364136223846793005ULL + rng -> inc ; uint32_t xorshifted = ( ( oldstate >> 18u ) ^ oldstate ) >> 27u ; uint32_t rot = oldstate >> 59u ; return ( xorshifted >> rot ) | ( xorshifted << ( ( - rot ) & 31 ) ) ; }
pcg32_random_r(rng)
Generate a uniformly distributed 32-bit random number
pcg32_random_r ( rng ) Generate a uniformly distributed 32 - bit random number