Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenStarbound/OpenStarbound
/ randi64
Method
randi64
source/core/StarRandom.cpp:74–76 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
72
}
73
74
int64_t RandomSource::randi64() {
75
return (int64_t)(randu64());
76
}
77
78
float RandomSource::randf() {
79
return (randu32() & 0x7fffffff) / 2147483648.0f;
Callers
2
randi64
Function · 0.80
TEST
Function · 0.80
Calls
1
randu64
Function · 0.85
Tested by
1
TEST
Function · 0.64