Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
RailTrail
Method · 0.95
Explosion
Method · 0.95
Heatbeam
Method · 0.95
RailTrail
Method · 0.95
BeginIntermission
Method · 0.95
think
Method · 0.95
Weapon_Generic
Method · 0.95
SV_NewChaseDir
Method · 0.95
G_PickTarget
Method · 0.95
SpawnRandomMonster
Method · 0.95
monster_start
Method · 0.95
SP_misc_banner
Method · 0.95
Calls
no outgoing calls
Tested by
4
RailTrail
Method · 0.76
Explosion
Method · 0.76
Heatbeam
Method · 0.76
RailTrail
Method · 0.76