decorative banner

Getting a random value that doesn't depend on time


    Using the seed_random() function, you can now write an expression calling for a random value that depends on the layer's index (number) and the stream (property) but not the time. For example, the following expression passes true as the second parameter to the seed_random() function to get a random number between 0 and 1 which depends on the layer and property number but not the time:

    seed_random(<any number>, true);

    r = random()