(dissociated-press): Use `(random N)' instead of while loop.
This commit is contained in:
parent
93cc044bd6
commit
82305cbd4d
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue