SFML community forums

Help => General => Topic started by: JeZ-l-Lee on February 12, 2009, 01:04:17 am

Title: What to set sf::Randomizer::SetSeed( ) too ??
Post by: JeZ-l-Lee on February 12, 2009, 01:04:17 am
What to set sf::Randomizer::SetSeed( ) too ??

Need answer that is cross-platform...

Thanks...
Title: What to set sf::Randomizer::SetSeed( ) too ??
Post by: Laurent on February 12, 2009, 08:01:22 am
Nothing. You only need to call this function if you want to reuse a previous seed, in order to reproduce the exact same sequence of random numbers.

But this is explained in the tutorial (did you actually read it?).
Title: What to set sf::Randomizer::SetSeed( ) too ??
Post by: JeZ-l-Lee on February 12, 2009, 12:02:13 pm
Hi,

Was alittle confused about this.

In my previous games,
I had to set the random number generator seed
each time the game was ran.

But if you say that this is not necessary
then I guess I do not have to with SFML...
Title: What to set sf::Randomizer::SetSeed( ) too ??
Post by: Laurent on February 12, 2009, 01:31:00 pm
Absolutely ;)