MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / randf

Method randf

source/core/StarRandom.cpp:78–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78float RandomSource::randf() {
79 return (randu32() & 0x7fffffff) / 2147483648.0f;
80}
81
82double RandomSource::randd() {
83 return (randu64() & 0x7fffffffffffffff) / 9223372036854775808.0;

Callers 15

generateNpcVariantMethod · 0.80
planetOrbitDistanceMethod · 0.80
planetPositionMethod · 0.80
randomArrivalPositionMethod · 0.80
produceChunkMethod · 0.80
produceSystemMethod · 0.80
produceConstellationsMethod · 0.80
updateMethod · 0.80
chooseOptionFunction · 0.80
createItemMethod · 0.80
ParallaxMethod · 0.80
buildLayerMethod · 0.80

Calls 3

randu32Function · 0.85
StarExceptionClass · 0.85
randfFunction · 0.85

Tested by 1

TESTFunction · 0.64