random number only once?

Moderators: Disciple, zlovatt

Post Reply
Tread
Posts: 2
Joined: February 7th, 2006, 8:58 am
Location: New York
Contact:

How can I generate a random number at frame one of a composition and always remain that value?

the random function does it every frame.

thanks
Mylenium
Posts: 139
Joined: July 20th, 2005, 12:07 am

You need to "freeze" the random seed with whatever means you want. I usually resort to the index

seedRandom(index, true)


Mylenium
[Pour Mylène, ange sur terre]
Post Reply