random
module reference
index
- Generate a random number.
- Generate a random vector.
- Generate a random vector.
- Generate a random vector.
details
- Generate a random number.
(random/num [trigger] [range]))
Generate a random value in
range
when created and ontrig
.range can be one of: - ‘uni’ [ 0 - 1[ (default) - ‘bip’ [-1 - 1[ - ‘rad’ [ 0 - tau[ - ‘deg’ [ 0 - 360[ - (num) [ 0 - num[
- Generate a random vector.
(random/vec#{n} [trigger] [range]))
Generate a random vec2 in
range
when created and ontrig
.range can be one of: - ‘uni’ [ 0 - 1[ (default) - ‘bip’ [-1 - 1[ - ‘rad’ [ 0 - tau[ - ‘deg’ [ 0 - 360[ - (num) [ 0 - num[
- Generate a random vector.
(random/vec#{n} [trigger] [range]))
Generate a random vec3 in
range
when created and ontrig
.range can be one of: - ‘uni’ [ 0 - 1[ (default) - ‘bip’ [-1 - 1[ - ‘rad’ [ 0 - tau[ - ‘deg’ [ 0 - 360[ - (num) [ 0 - num[
- Generate a random vector.
(random/vec#{n} [trigger] [range]))
Generate a random vec4 in
range
when created and ontrig
.range can be one of: - ‘uni’ [ 0 - 1[ (default) - ‘bip’ [-1 - 1[ - ‘rad’ [ 0 - tau[ - ‘deg’ [ 0 - 360[ - (num) [ 0 - num[