help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random number generation in LISP or using it


From: Lennart Borgman
Subject: Re: Random number generation in LISP or using it
Date: Wed, 10 Jun 2009 20:56:01 +0200

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
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]