Skip to content

Commit

Permalink
Fixed booleanWithChance(), thanks to @lynus
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdantas committed Apr 22, 2014
1 parent baf1e4c commit 8ac92a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc/Utils.cpp
Expand Up @@ -67,7 +67,7 @@ bool Utils::Random::boolean()

bool Utils::Random::booleanWithChance(float percent)
{
int x = Utils::Random::between(0, 9999);
int x = Utils::Random::between(0, 99);

return (x < (percent * 100));
}
Expand Down

0 comments on commit 8ac92a7

Please sign in to comment.