# Predictable particle emitters?

**URL:** <https://discussions.unity.com/t/predictable-particle-emitters/395007>\
**Category:** Scripting\
**Tags:** Scripting\
**Created:** [July 17, 2009, 8:01am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007 "2009-07-17T08:01:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_99504006](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@anon\_99504006](https://discussions.unity.com/u/anon_99504006)\
**Post date:** [July 17, 2009, 8:01am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007/1 "2009-07-17T08:01:45Z")

</div>

Hi guys, I’m trying to generate a particle emitter that emits particles with predictable results, i.e. that if started on different machines will generate the same particles with the same direction, velocity, etc.  
I tried setting a costant seed with Random.seed(0) and then emit a constant number of particles with calling Emit(10), but the particles are still emitted randomly.  
I am conscious that it could be achieved by generating particles one by one by calling Emit() and specifying position, velocity, color, etc. specifically, but I would prefer not to do that if I can avoid it. I am also conscious that if there are differences in FPS the particles won’t be emitted exactly at the same point, but that is acceptable.  
So, any ideas?

Thanks for your time.

---

<div class="post-metadata">

**Author:** ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)\
**Post date:** [July 17, 2009, 8:04am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007/2 "2009-07-17T08:04:03Z")

</div>

without defineing every single particle yourself there is no way to do that as random number generators are not predictable across different machines due to cpu differences

---

<div class="post-metadata">

**Author:** ![Eric5h5](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/eric5h5/32/44225_2.png) [@Eric5h5](https://discussions.unity.com/u/Eric5h5)\
**Post date:** [July 17, 2009, 9:04am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007/3 "2009-07-17T09:04:30Z")

</div>

The random number generator in Unity is 100% predictable across different machines and architectures, however the particle emitter doesn’t make use of Random.seed, so there’s no way aside from doing it yourself, unfortunately.

–Eric

---

<div class="post-metadata">

**Author:** ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)\
**Post date:** [July 17, 2009, 9:08am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007/4 "2009-07-17T09:08:44Z")

</div>

Sure thing?  
Because its known that physx on its own is not predictable across different platforms (intel vs amd) for example

---

<div class="post-metadata">

**Author:** ![Eric5h5](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/eric5h5/32/44225_2.png) [@Eric5h5](https://discussions.unity.com/u/Eric5h5)\
**Post date:** [July 17, 2009, 9:11am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007/5 "2009-07-17T09:11:42Z")

</div>

> [@""](#):
>
> Sure thing?  
> Because its known that physx on its own is not predictable across different platforms (intel vs amd) for example

Yes, [Realmaze3D](http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=310897051&mt=8) generates the exact same mazes on PPC, Intel, and ARM, if the random seed is the same.

–Eric

---

<div class="post-metadata">

**Author:** ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)\
**Post date:** [July 17, 2009, 9:17am UTC](https://discussions.unity.com/t/predictable-particle-emitters/395007/6 "2009-07-17T09:17:15Z")

</div>

cool 🙂
