MCPcopy 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

RailTrailMethod · 0.95
testParticlesMethod · 0.95
RailTrailMethod · 0.95
thinkMethod · 0.95
VelocityForDamageMethod · 0.95
ThrowGibMethod · 0.95
ThrowHeadMethod · 0.95
ThrowDebrisMethod · 0.95
thinkMethod · 0.95
fire_leadMethod · 0.95
fire_grenadeMethod · 0.95
fire_grenade2Method · 0.95

Calls

no outgoing calls

Tested by 3

RailTrailMethod · 0.76
testParticlesMethod · 0.76
RailTrailMethod · 0.76