14#define RandomSelection_AddEnt(e, weight, priority) RandomSelection_Add(e, 0, string_null, '0 0 0', weight, priority)
15#define RandomSelection_AddFloat(f, weight, priority) RandomSelection_Add(NULL, f, string_null, '0 0 0', weight, priority)
16#define RandomSelection_AddString(s, weight, priority) RandomSelection_Add(NULL, 0, s, '0 0 0', weight, priority)
17#define RandomSelection_AddVec(v, weight, priority) RandomSelection_Add(NULL, 0, string_null, v, weight, priority)
32#define crandom() (2 * (random() - 0.5))
41 #ifdef USE_PRANDOM_DEBUG
44 #define prandom_debug()
47 #define prandom random
48 #define prandomvec randomvec
50 #define prandom_debug()
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float RandomSelection_best_priority
ERASEABLE void RandomSelection_Add(entity e, float f, string s, vector v, float weight, float priority)
float RandomSelection_chosen_float
ERASEABLE void RandomSelection_Init()
ERASEABLE void DistributeEvenly_Init(float amount, float totalweight)
string RandomSelection_chosen_string
float RandomSelection_totalweight
void psrandom(float seed)
ERASEABLE float DistributeEvenly_GetRounded(float weight)
entity RandomSelection_chosen_ent
ERASEABLE float DistributeEvenly_Get(float weight)
vector RandomSelection_chosen_vec
float prandom()
Predictable random number generator (not seeded yet)
ERASEABLE float DistributeEvenly_GetRandomized(float weight)
ERASEABLE float gsl_ran_ugaussian()
Returns a Gaussian random variate, with mean zero and standard deviation sigma 1 From the GNU Scienti...