|
From: | Lennart Borgman |
Subject: | Re: elisp question |
Date: | Thu, 01 Dec 2005 00:22:25 +0100 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
Tim McNamara wrote:
Seems to me that there are two steps. One is to count how many files are in the directory, and to use that count as the limit for (random). Then to take the "random" number generated by (random) and use it with find-file. Pointers to relevant information are much appreciated! I am probably not even starting in the right place.
Maybe you can use the function `directory-files'?
[Prev in Thread] | Current Thread | [Next in Thread] |