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: Random number generation in LISP or using it Date: Wed, 10 Jun 2009 20:56:01 +0200 Message-ID: References: <0c194ee2-6347-4a46-8932-37d144e9265a@z7g2000vbh.googlegroups.com> <4a2ff5ad$0$90268$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244660198 13292 80.91.229.12 (10 Jun 2009 18:56:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2009 18:56:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Colin S. Miller" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 10 20:56:35 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MESyR-0003Gy-AT for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 20:56:35 +0200 Original-Received: from localhost ([127.0.0.1]:33091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MESyQ-0004CB-S1 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Jun 2009 14:56:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MESy2-00049L-Cn for help-gnu-emacs@gnu.org; Wed, 10 Jun 2009 14:56:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MESxw-00046J-Mr for help-gnu-emacs@gnu.org; Wed, 10 Jun 2009 14:56:09 -0400 Original-Received: from [199.232.76.173] (port=35655 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MESxw-000468-Bb for help-gnu-emacs@gnu.org; Wed, 10 Jun 2009 14:56:04 -0400 Original-Received: from mail-fx0-f217.google.com ([209.85.220.217]:50375) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MESxu-0005Ge-SQ for help-gnu-emacs@gnu.org; Wed, 10 Jun 2009 14:56:03 -0400 Original-Received: by fxm17 with SMTP id 17so1279477fxm.42 for ; Wed, 10 Jun 2009 11:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LbLahcEJRx+uQ7cF4xr6bhHunKl00XEsXVLKThoZTe8=; b=m2uqsdYf4+mrQcR1Ux4BHSyS1s25l97eQ/eXfpQJLv5e7Ua0/2RDG9y91G/yi97L+6 rxolM/Uxj1QbmYgQ3HVNksP9sQP31yFOkD6IkY94rPfMitwHd+YJfDlbrRlstXTkwPpx bbgnY+w4D7NRB7OrXcm+rzcXUSS/freBSD5I0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JJSGV+TOeOdIiFKWkd3Zn7YP6azMj4tGb/AQ2smiaaFNBgWNCHion2R2qnPERrW8sT 1cK1sKY4MxXEss5R6xd8DjvBick03sHSofudwbI1ayFTfN4/MnYr2OGEP8Pj/4Ko/yer zr9pr29Pa9vN/sOhRTuYG2kOVI4YinbvOx8HM= Original-Received: by 10.239.151.82 with SMTP id q18mr144688hbb.22.1244660161924; Wed, 10 Jun 2009 11:56:01 -0700 (PDT) In-Reply-To: <4a2ff5ad$0$90268$14726298@news.sunsite.dk> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65128 Archived-At: On Wed, Jun 10, 2009 at 8:04 PM, Colin S. Miller wrote: > bolega wrote: >> >> I am a newbie with the following problem. >> > >> >> The function "random" does not work in emacs. I guess one get the >> start line and end line of a marked region and then use that to >> disorder (or re-order) the lines according to a list of random numbers >> generated ? > > Bolega, > (random) is in the package cl. Since (random) doesn't have an autoload, > you'll need to use > (require 'cl) > before you can use (random). Or do as the manual says: (eval-when-compile (require 'cl)) to avoid some potential problems. > > > > > HTH, > Colin S. Miller >