Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
What to set sf::Randomizer::SetSeed( ) too ??
Print
Pages: [
1
]
Author
Topic: What to set sf::Randomizer::SetSeed( ) too ?? (Read 2464 times)
0 Members and 1 Guest are viewing this topic.
JeZ-l-Lee
Jr. Member
Posts: 80
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...
Logged
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio
http://www.SilentHeroProductions.com
Laurent
Administrator
Hero Member
Posts: 32498
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?).
Logged
Laurent Gomila - SFML developer
JeZ-l-Lee
Jr. Member
Posts: 80
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...
Logged
JeZ+Lee
Silent Hero Productions(R)
Video Game Design Studio
http://www.SilentHeroProductions.com
Laurent
Administrator
Hero Member
Posts: 32498
What to set sf::Randomizer::SetSeed( ) too ??
«
Reply #3 on:
February 12, 2009, 01:31:00 pm »
Absolutely
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
What to set sf::Randomizer::SetSeed( ) too ??
anything