ParticleSystemRandom Property |
Namespace: DigitalRune.Particles
Exception | Condition |
---|---|
ArgumentNullException | value is . |
The random number generator is created on demand when the property getter is accessed for the first time. When particle systems are updated in parallel (see EnableMultithreading) each particle system needs to have its own random number generator because the class Random is not thread-safe!
When multiple particle systems are created in close succession, they may be initialized with the same random seed. This can lead to particle systems that behave similar and do not look random. If this is a problem, consider setting a random number generator with a carefully chosen seed.