MCPcopy Create free account
hub / github.com/demoth/jake2 / rand

Method rand

qcommon/src/main/java/jake2/qcommon/util/Lib.java:58–60  ·  view source on GitHub ↗

Like in libc.

()

Source from the content-addressed store, hash-verified

56
57 /** Like in libc. */
58 public static short rand() {
59 return (short)Globals.rnd.nextInt(Short.MAX_VALUE+1);
60 }
61
62 /** Like in libc. */
63 public static float crandom() {

Callers 15

RailTrailMethod · 0.95
ExplosionMethod · 0.95
HeatbeamMethod · 0.95
RailTrailMethod · 0.95
BeginIntermissionMethod · 0.95
thinkMethod · 0.95
Weapon_GenericMethod · 0.95
SV_NewChaseDirMethod · 0.95
G_PickTargetMethod · 0.95
SpawnRandomMonsterMethod · 0.95
monster_startMethod · 0.95
SP_misc_bannerMethod · 0.95

Calls

no outgoing calls

Tested by 4

RailTrailMethod · 0.76
ExplosionMethod · 0.76
HeatbeamMethod · 0.76
RailTrailMethod · 0.76