View Single Post
Old 04-07-2003, 09:35 AM   #11
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

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...
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote