Loops on particle systems maybe?

Howdy, I’ve been working with 3D applications for about 5 years, but am very new to scripting. (Javascript)

I’m using a particle system to create a “lazer shot,” (like a blaster in Star Wars). My goal is to have the color of each “shot” from the particle system be one of six colors chosen randomly. If anyone has any suggestions on how to accomplish this I would love to hear them!

– Also, on a side note; I’ve gone through the Unity scripting references, Unity tutorials, and tutorials on Digital Tutors, but am still having a hard time with understanding the pipeline of scripting. If anyone can point out some useful tools in that regards that would be great!

might want to have a look at: Unity - Manual: Line Renderer component