diff options
| author | Paul Eggert | 1993-08-01 20:50:07 +0000 |
|---|---|---|
| committer | Paul Eggert | 1993-08-01 20:50:07 +0000 |
| commit | 82305cbd4d216880da4149ede6a0701fd8f9b843 (patch) | |
| tree | 108f4f485f5e07f71cf36556d129c8dbae5a0f04 | |
| parent | 93cc044bd667a606c72f5d86e05dbc511a27337f (diff) | |
| download | emacs-82305cbd4d216880da4149ede6a0701fd8f9b843.tar.gz emacs-82305cbd4d216880da4149ede6a0701fd8f9b843.zip | |
(dissociated-press): Use `(random N)' instead of while loop.
| -rw-r--r-- | lisp/play/dissociate.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/play/dissociate.el b/lisp/play/dissociate.el index 494d83b3b58..6939f320f79 100644 --- a/lisp/play/dissociate.el +++ b/lisp/play/dissociate.el | |||
| @@ -88,9 +88,7 @@ Default is 2." | |||
| 88 | (funcall move-function | 88 | (funcall move-function |
| 89 | (- move-amount))) | 89 | (- move-amount))) |
| 90 | (point)))) | 90 | (point)))) |
| 91 | (let (ranval) | 91 | (goto-char (1+ (random (1- (point-max))))) |
| 92 | (while (< (setq ranval (random)) 0)) | ||
| 93 | (goto-char (1+ (% ranval (1- (point-max)))))) | ||
| 94 | (or (funcall search-function overlap nil t) | 92 | (or (funcall search-function overlap nil t) |
| 95 | (let ((opoint (point))) | 93 | (let ((opoint (point))) |
| 96 | (goto-char 1) | 94 | (goto-char 1) |