Here's a little tip. If you use the seed() function you can be sure your expression with rand() functions run always the same way. Code: { seed(1234); float $foo = rand(-5, 5); } The $foo will contain a random value, but it is allways the same in a given frame...