I'm in there again, just relaxing on a Saturday evening. Join!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Monsieur OUXX on Wed 13/11/2013 15:44:35Quote from: Construed on Sun 03/11/2013 02:40:54
Anyone ever started or completed it yet?
Well, apparently this scripting challenge is not inspiring as many people as the last one!
bool diceRoll(int diceCount, int diceSides, int successMinimum)
{
int sum = 0;
int i = 0;
while (i < diceCount)
// for every dice
{
sum += Random(diceSides - 1) + 1;
i++;
}
if (sum >= successMinimum * diceCount)
return true;
return false;
}
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.178 seconds with 15 queries.