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

Method nrand

source/core/scripting/StarUtilityLuaBindings.cpp:177–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177double LuaBindings::UtilityCallbacks::nrand(Maybe<double> const& stdev, Maybe<double> const& mean) {
178 return Random::nrandd(stdev.value(1.0), mean.value(0));
179}
180
181String LuaBindings::UtilityCallbacks::makeUuid() {
182 return Uuid().hex();

Callers

nothing calls this directly

Calls 2

nranddFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected