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 2026/02/13 12:06:39 UTC

(commons-rng) 01/02: Fix comment

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 ab37f5ae8c9a319c9d72566164cb9acae555d762
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Thu Feb 12 16:29:35 2026 +0000

    Fix comment
---
 .../commons/rng/sampling/distribution/ContinuousUniformSampler.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.java b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.java
index 53ccd24e..ee4031b7 100644
--- a/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.java
+++ b/commons-rng-sampling/src/main/java/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.java
@@ -56,7 +56,7 @@ public class ContinuousUniformSampler
         @Override
         public double sample() {
             final double x = super.sample();
-            // Due to rounding using a variate u in the open interval (0,1) with the original
+            // Due to rounding using a variate u in the open interval (lo, hi) with the original
             // algorithm may generate a value at the bound. Thus the bound is explicitly tested
             // and the sample repeated if necessary.
             if (x == getHi() || x == getLo()) {