Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2d3da38b
Commit
2d3da38b
authored
Dec 16, 2004
by
Jay Belanger
Browse files
(math-random-digit): Call math-init-random-base if var-RandSeed is nil.
parent
3cc2b29c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lisp/calc/calc-comb.el
lisp/calc/calc-comb.el
+1
-1
No files found.
lisp/calc/calc-comb.el
View file @
2d3da38b
...
...
@@ -601,7 +601,7 @@
;;; Shuffling algorithm from Numerical Recipes, section 7.1.
(
defun
math-random-digit
()
(
let
(
i
math-random-last
)
(
or
(
eq
var-RandSeed
math-last-RandSeed
)
(
or
(
and
var-RandSeed
(
eq
var-RandSeed
math-last-RandSeed
)
)
(
math-init-random-base
))
(
or
math-random-cache
(
progn
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment