aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/mfinfact.spad.pamphlet
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@axiomatics.org>2015-12-31 14:56:12 -0800
committerGabriel Dos Reis <gdr@axiomatics.org>2015-12-31 14:56:12 -0800
commitf51aee83708673ef9941174951bec9aee80cb03c (patch)
tree4d8cfccd653dfa09819234bc61a8775091e4f1e6 /src/algebra/mfinfact.spad.pamphlet
parent039d244dbef31e4ca6d34d2cf42b58b41a572884 (diff)
downloadopen-axiom-f51aee83708673ef9941174951bec9aee80cb03c.tar.gz
Avoid modulus bias in 'random()' usage.
Diffstat (limited to 'src/algebra/mfinfact.spad.pamphlet')
-rw-r--r--src/algebra/mfinfact.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/mfinfact.spad.pamphlet b/src/algebra/mfinfact.spad.pamphlet
index bca79804..c7d9645e 100644
--- a/src/algebra/mfinfact.spad.pamphlet
+++ b/src/algebra/mfinfact.spad.pamphlet
@@ -331,7 +331,7 @@ MultFiniteFactorize(OV,E,F,PG) : C == T
-- This function has to be added to Eucliden domain
ran(k1:Z) : R ==
- --if R case Integer then random()$R rem (2*k1)-k1
+ --if R case Integer then random(2*k1)$R-k1
--else
+/[monomial(random()$F,i)$R for i in 0..k1]