[gbrainy] The correct answer for the Average game was always the smaller option



commit c5e98a567541a1686ed2488409b8e4c0087cd026
Author: Jordi Mas <jmas softcatala org>
Date:   Thu Jan 5 19:16:04 2012 +0100

    The correct answer for the Average game was always the smaller option

 src/Games/Calculation/CalculationAverage.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Games/Calculation/CalculationAverage.cs b/src/Games/Calculation/CalculationAverage.cs
index dc6451f..0b1dbd0 100644
--- a/src/Games/Calculation/CalculationAverage.cs
+++ b/src/Games/Calculation/CalculationAverage.cs
@@ -116,7 +116,7 @@ namespace gbrainy.Games.Calculation
 			while (options_next < options_cnt) {
 				double ans;
 
-				ans = correct + random.Next (dist);
+				ans = correct + random.Next (-dist, dist +1);
 				duplicated = false;
 
 				// No repeated answers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]