You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/11/29 13:57:10 UTC
[commons-rng] 02/02: Use the input mean and SD for the rolls per round
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit 75db44fa5ea7ffb9feef69dcab81950a801c94fa
Author: aherbert <ah...@apache.org>
AuthorDate: Tue Nov 29 13:56:19 2022 +0000
Use the input mean and SD for the rolls per round
---
.../org/apache/commons/rng/examples/jpms/app/DiceGameApplication.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/commons-rng-examples/examples-jpms/jpms-app/src/main/java/org/apache/commons/rng/examples/jpms/app/DiceGameApplication.java b/commons-rng-examples/examples-jpms/jpms-app/src/main/java/org/apache/commons/rng/examples/jpms/app/DiceGameApplication.java
index 58dbfcf2..a0f6a8c6 100644
--- a/commons-rng-examples/examples-jpms/jpms-app/src/main/java/org/apache/commons/rng/examples/jpms/app/DiceGameApplication.java
+++ b/commons-rng-examples/examples-jpms/jpms-app/src/main/java/org/apache/commons/rng/examples/jpms/app/DiceGameApplication.java
@@ -48,7 +48,7 @@ public final class DiceGameApplication {
double sigma) {
game = new DiceGame(numPlayers, numRounds,
identifier.create(),
- 4.3, 2.1);
+ mu, sigma);
}
// Allow System.out and multiple " ---" strings
@@ -64,6 +64,8 @@ public final class DiceGameApplication {
* <li>Number of players</li>
* <li>Number of rounds per game</li>
* <li>RNG {@link RandomSource identifier}</li>
+ * <li>Mean rolls per round</li>
+ * <li>Standard deviation of rolls per round</li>
* </ol>
*/
public static void main(String[] args) {