PV_Random

Category: Particles
Since engine version: 5.3.3 OC

Description

The value will be a random number in the interval from start_value to (not including) end_value. The values in between are not whole integers, but are also in fraction of integers. This means that PV_Random(0, 1) can not only return one value (the 0) but a lot of different values in the interval between 0 and 1.

Syntax

array PV_Random(int start_value, int end_value, int reroll_interval);

Parameters

start_value:
[opt] Begin of the interval to draw the random number from.
end_value:
[opt] End of the interval to draw the random number from.
reroll_interval:
[opt] Interval in frames after which a new random number will be drawn.

Remark

See the particle documentation for further explanations of the particle system.
See also: CreateParticle, PC_Bounce, PC_Die, PV_Direction, PV_KeyFrames, PV_Linear, PV_Sin, PV_Speed, PV_Step
Zapper, 2013-10