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 2019/02/13 15:44:52 UTC
[commons-rng] 04/07: Use n and k variables in PermutationSamplerTest
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 971f86266ab7c07c5f947489fdd3b3eb27c68a56
Author: aherbert <ah...@apache.org>
AuthorDate: Wed Feb 13 15:21:29 2019 +0000
Use n and k variables in PermutationSamplerTest
---
.../java/org/apache/commons/rng/sampling/PermutationSamplerTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/PermutationSamplerTest.java b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/PermutationSamplerTest.java
index c887147..b82022f 100644
--- a/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/PermutationSamplerTest.java
+++ b/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/PermutationSamplerTest.java
@@ -38,7 +38,7 @@ public class PermutationSamplerTest {
final int n = 6;
final int k = 3;
final PermutationSampler sampler = new PermutationSampler(RandomSource.create(RandomSource.KISS),
- 6, 3);
+ n, k);
final int[] random = sampler.sample();
SAMPLE: for (int s : random) {
for (int i = 0; i < n; i++) {