VE Lua Documentation

Press F to search!

randomState

Definition


-- @/lua/common/mathlib.lua:647

-- returns random number in [0..1], v in [0..1]
function randomState(v)
  return max(floor(v * 5779561388494110) % 4294967291, 1) / 4294967290
end

Callers