From: Lennart Borgman <lennart.borgman@gmail.com>
To: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Random number generation in LISP or using it
Date: Wed, 10 Jun 2009 20:56:01 +0200 [thread overview]
Message-ID: <e01d8a50906101156i38f67ec9g1734a83a011f6b50@mail.gmail.com> (raw)
In-Reply-To: <4a2ff5ad$0$90268$14726298@news.sunsite.dk>
On Wed, Jun 10, 2009 at 8:04 PM, Colin S.
Miller<no-spam-thank-you@csmiller.demon.co.uk> wrote:
> bolega wrote:
>>
>> I am a newbie with the following problem.
>>
> <snip>
>>
>> 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.
> <snip>
>
>
>
> HTH,
> Colin S. Miller
>
next prev parent reply other threads:[~2009-06-10 18:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-10 15:21 Random number generation in LISP or using it bolega
2009-06-10 15:26 ` bolega
2009-06-10 18:04 ` Colin S. Miller
2009-06-10 18:56 ` Lennart Borgman [this message]
2009-06-10 18:21 ` Thomas A. Russ
2009-06-10 18:21 ` Thomas A. Russ
2009-06-10 21:57 ` Xah Lee
2009-06-11 7:34 ` TomSW
2009-07-08 11:54 ` Mario Lang
2009-07-08 12:57 ` Pascal J. Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e01d8a50906101156i38f67ec9g1734a83a011f6b50@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=no-spam-thank-you@csmiller.demon.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).