Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What to set sf::Randomizer::SetSeed( ) too ??  (Read 2474 times)

0 Members and 1 Guest are viewing this topic.

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
What to set sf::Randomizer::SetSeed( ) too ??
« on: February 12, 2009, 01:04:17 am »
What to set sf::Randomizer::SetSeed( ) too ??

Need answer that is cross-platform...

Thanks...
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What to set sf::Randomizer::SetSeed( ) too ??
« Reply #1 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?).
Laurent Gomila - SFML developer

JeZ-l-Lee

  • Jr. Member
  • **
  • Posts: 80
    • ICQ Messenger - 223180991
    • MSN Messenger - JeZLee@Live.com
    • AOL Instant Messenger - SLNTHERO@aol.com
    • View Profile
    • http://www.SilentHeroProductions.com
    • Email
What to set sf::Randomizer::SetSeed( ) too ??
« Reply #2 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...
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio

http://www.SilentHeroProductions.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
What to set sf::Randomizer::SetSeed( ) too ??
« Reply #3 on: February 12, 2009, 01:31:00 pm »
Absolutely ;)
Laurent Gomila - SFML developer