Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ uniform_from_uint
Function
uniform_from_uint
numpy/random/tests/test_direct.py:83–87 ·
view source on GitHub ↗
(x, bits)
Source
from the content-addressed store, hash-verified
81
82
83
def
uniform_from_uint(x, bits):
84
if
bits in (64, 63, 53):
85
return
uniform_from_uint64(x)
86
elif
bits == 32:
87
return
uniform_from_uint32(x)
88
89
90
def
uniform_from_uint64(x):
Callers
1
test_uniform_double
Method · 0.85
Calls
2
uniform_from_uint64
Function · 0.85
uniform_from_uint32
Function · 0.85
Tested by
no test coverage detected