VEX Dictionary / random
random
Generates a random value from an integer lattice position in 1 to 4 dimensions, without interpolation.
group: noiserandom
Available in every context
Usage
float random(int|float position)
vector random(int|float position)
vector2 random(int position)
vector4 random(int|float position)
float random(int|float xpos, int|float ypos)
vector random(int|float xpos, int|float ypos)
vector4 random(int|float xpos, int|float ypos)
float random(vector position)
vector random(vector position)
vector4 random(vector position)
float random(vector4 position)
vector random(vector4 position)
vector4 random(vector4 position)
Examples
No worked examples yet.
Signatures (from vcc -X)
float random(float)all contextsfloat random(float, float)all contextsfloat random(int)all contextsfloat random(int, int)all contextsfloat random(vector4)all contextsfloat random(vector)all contextsvector4 random(float)all contextsvector4 random(float, float)all contextsvector4 random(int)all contextsvector4 random(int, int)all contextsvector4 random(vector4)all contextsvector4 random(vector)all contextsvector2 random(int)all contextsvector random(float)all contextsvector random(float, float)all contextsvector random(int)all contextsvector random(int, int)all contextsvector random(vector4)all contextsvector random(vector)all contexts