summaryrefslogtreecommitdiff
path: root/tex/context/base/supp-ran.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/supp-ran.lua')
-rw-r--r--tex/context/base/supp-ran.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/supp-ran.lua b/tex/context/base/supp-ran.lua
index accd5c94c..75202f696 100644
--- a/tex/context/base/supp-ran.lua
+++ b/tex/context/base/supp-ran.lua
@@ -16,7 +16,6 @@ local commands = commands
local math = math
local random, randomseed, round, seed, last = math.random, math.randomseed, math.round, false, 1
-local texwrite = tex.write
function math.setrandomseedi(n,comment)
if not n then
@@ -35,12 +34,12 @@ end
function commands.getrandomcounta(min,max)
last = random(min,max)
- texwrite(last)
+ context(last)
end
function commands.getrandomcountb(min,max)
last = random(min,max)/65536
- texwrite(last)
+ context(last)
end
function commands.setrandomseed(n)
@@ -49,7 +48,7 @@ function commands.setrandomseed(n)
end
function commands.getrandomseed(n)
- texwrite(last)
+ context(last)
end
-- maybe stack