ParticleLayer:SetRandomSeed(seed)

Version added: before 9.5

Re-randomizes the particle simulation

ArgumentTypeDescriptionDefaultVer
seedint32The random seed< 9.5

Return type : none

Re-randomizes the particle simulation. Enter a random number for a random particle effect, or some known number to get back to an older simulation.

moho.document:PrepUndo(moho.layer, true)
moho.document:SetDirty()
particleLayer:SetRandomSeed(math.random(1, 16777216))
moho:SetCurFrame(moho.frame) -- force the particles to be recalculated