Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/demoth/jake2
/ crandom
Method
crandom
qcommon/src/main/java/jake2/qcommon/util/Lib.java:63–65 ·
view source on GitHub ↗
Like in libc.
()
Source
from the content-addressed store, hash-verified
61
62
/** Like in libc. */
63
public
static
float crandom() {
64
return
(Globals.rnd.nextFloat() - 0.5f) * 2.0f;
65
}
66
67
/** Like in libc. */
68
public
static
float random() {
Callers
15
RailTrail
Method · 0.95
testParticles
Method · 0.95
RailTrail
Method · 0.95
think
Method · 0.95
VelocityForDamage
Method · 0.95
ThrowGib
Method · 0.95
ThrowHead
Method · 0.95
ThrowDebris
Method · 0.95
think
Method · 0.95
fire_lead
Method · 0.95
fire_grenade
Method · 0.95
fire_grenade2
Method · 0.95
Calls
no outgoing calls
Tested by
3
RailTrail
Method · 0.76
testParticles
Method · 0.76
RailTrail
Method · 0.76