MCPcopy 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
74int64_t RandomSource::randi64() {
75 return (int64_t)(randu64());
76}
77
78float RandomSource::randf() {
79 return (randu32() & 0x7fffffff) / 2147483648.0f;

Callers 2

randi64Function · 0.80
TESTFunction · 0.80

Calls 1

randu64Function · 0.85

Tested by 1

TESTFunction · 0.64