25 float uniform(
float a,
float b);
34 unsigned sample(
const float* probs,
size_t size);
Data types for the gamecube.
float uniform(float a, float b)
Sample uniformly from [a, b] .
Definition: random.c:23
Function Argument.
Definition: logic.h:26
bool chance(FunctionArg prob)
Single 'coin flip' with given probability.
Definition: random.c:41
float rand()
Generate random number in [0,1].
Definition: random.c:16
Defines structs for AI logic.
unsigned sample(const float *probs, size_t size)
Return index of array according to given probabilities.
Definition: random.c:28