2D Emitter Random Particle Selection Type

I have this code here;



				local p = SW.Emitter2D:Add( "ash/ash1", pos );
				
				p:SetVelocity( Vector( 20 + math.random( -5, 5 ), 20 + math.random( -5, 5 ), -80 ) );
				p:SetRoll( math.random( -360, 360 ) );
				p:SetDieTime( SW.AshDieTime );
				p:SetStartAlpha( 200 );
				p:SetStartSize( 1 );
				p:SetEndSize( 1 );
				p:SetColor( 255, 255, 255 );
				
				p:SetCollide( true );
				p:SetCollideCallback( function( p, pos, norm )


How do I make it so the emitter randomly chooses out of the three random materials/particles?
ash/ash1
ash/ash2
ash/ash3

Thanks,
Kemerd.

This?
[lua]
local p = SW.Emitter2D:Add( “ash/ash” … math.random(1, 3), pos );
[/lua]

Thanks.

I feel stupid now.

(Just didn’t know with emitters.)