Jsf::Randomizer had the simplest implementation possible.
- rand() % range + min for integers
- rand() * range / RAND_MAX + min for floats
Laurent, this seems is not like sf::Randomizer because if I put for range 10 and min = -10 it's returning values from -10 to 0.
EDIT: I'll check now the source file.
EDIT 2: Yep, i found it and source was a litle bit different (just like my function), so this was not the reason my bolt effect is not like my bolt effect in SFML 1.6 with same source.
I'll try to found wath make it different.
Thanks for helping me.
I just wanna ask is there something changed in direction or angles in SFML 2 ?