From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: elisp question Date: Thu, 01 Dec 2005 00:22:25 +0100 Message-ID: <438E3431.5090406@student.lu.se> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133393101 19273 80.91.229.2 (30 Nov 2005 23:25:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2005 23:25:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 01 00:24:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EhbHu-0002Ot-6b for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Dec 2005 00:22:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhbHt-0007Ny-MR for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Nov 2005 18:22:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EhbHV-0007KG-PZ for help-gnu-emacs@gnu.org; Wed, 30 Nov 2005 18:22:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EhbHT-0007IU-Ld for help-gnu-emacs@gnu.org; Wed, 30 Nov 2005 18:22:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EhbHT-0007IA-6R for help-gnu-emacs@gnu.org; Wed, 30 Nov 2005 18:22:31 -0500 Original-Received: from [81.228.8.164] (helo=pne-smtpout2-sn2.hy.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EhbHT-0002YH-1B for help-gnu-emacs@gnu.org; Wed, 30 Nov 2005 18:22:31 -0500 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn2.hy.skanova.net (7.2.060.1) id 438DFE230000D22B; Thu, 1 Dec 2005 00:22:26 +0100 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: Tim McNamara In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31549 Archived-At: 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'?