p->vel_x = 1 - random(1);
p->vel_y = 1 - random(1);
p->vel_z = 0 + random(2);


This part is for moving(adding velocity) your particles. If you dont undertand this code well you should read the litec workshop and manual.



Ubi bene, ibi Patria.