(dissociated-press): Use `(random N)' instead of while loop.
authorPaul Eggert <eggert@twinsun.com>
Sun, 1 Aug 1993 20:50:07 +0000 (20:50 +0000)
committerPaul Eggert <eggert@twinsun.com>
Sun, 1 Aug 1993 20:50:07 +0000 (20:50 +0000)
lisp/play/dissociate.el

index 494d83b..6939f32 100644 (file)
@@ -88,9 +88,7 @@ Default is 2."
                                         (funcall move-function
                                                  (- move-amount)))
                                  (point))))
-          (let (ranval)
-            (while (< (setq ranval (random)) 0))
-            (goto-char (1+ (% ranval (1- (point-max))))))
+          (goto-char (1+ (random (1- (point-max)))))
           (or (funcall search-function overlap nil t)
               (let ((opoint (point)))
                 (goto-char 1)