create "random" values ?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
redwyn
Posts: 2
Joined: 24 Jul 2011, 08:49

create "random" values ?

Post by redwyn » 24 Jul 2011, 10:16

Hey folks

I'm trying to do a simple thing, which is to randomly distribute non-moving particles on a grid.
This should be no problem with all the "Randomize..." and "Random Value" plus "Emit" Nodes provided by ICE,
but i realized that every time i resimulate, the same particle-distribution occurs, which is not what i need if i want to simulate through different scenarios.
I built a node creating an array full of random numbers but the numbers too are the same everytime i run it.
I know that there is no "real random" in computing but couldn't i somehow get the system-time into the ICE-Tree,
to vary the seeds depending on it every time i simulate.
Any other suggestions as to how that problem can be solved are also welcome.
Am i missing something really simple here?

Thanks in advance

Zafar Iqbal
Moderator
Posts: 169
Joined: 26 Oct 2009, 09:04

Re: create "random" values ?

Post by Zafar Iqbal » 24 Jul 2011, 15:27

Randomizing "Seed" should do the trick.
- Zafar Iqbal

redwyn
Posts: 2
Joined: 24 Jul 2011, 08:49

Re: create "random" values ?

Post by redwyn » 26 Jul 2011, 21:20

Sadly it does not because that's just giving the same seed everytime again.
It's just one "Random Value" Node more to calculate.
Does nobody know how to get an always changing value like the time into ICE?

grahamef
Posts: 281
Joined: 23 Jun 2009, 19:01

Re: create "random" values ?

Post by grahamef » 26 Jul 2011, 22:14

redwyn wrote:Does nobody know how to get an always changing value like the time into ICE?
Use an expression on the seed:

RAND( , 1 , 99999 )

From the docs: http://download.autodesk.com/global/doc ... d28e473786