MCPcopy Create free account
hub / github.com/numpy/numpy / rk_double

Function rk_double

numpy/random/src/mt19937/randomkit.c:479–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477}
478
479double rk_double(rk_state *state) {
480 /* shifts : 67108864 = 0x4000000, 9007199254740992 = 0x20000000000000 */
481 long a = rk_random(state) >> 5, b = rk_random(state) >> 6;
482 return (a * 67108864.0 + b) / 9007199254740992.0;
483}
484
485void rk_fill(void *buffer, size_t size, rk_state *state) {
486 unsigned long r;

Callers 1

rk_gaussFunction · 0.85

Calls 1

rk_randomFunction · 0.85

Tested by

no test coverage detected