[Top][All Lists]

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

Re: How to create random characters?

From: Kai Grossjohann
Subject: Re: How to create random characters?
Date: Thu, 18 Dec 2003 10:32:50 +0000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

Brad Collins <address@hidden> writes:

> I did find if you use Emacs' "random" function, it will always use the
> same seed to generate random numbers.  You can use (random t) to use a
> different seed, and get different random sequences every time, but my
> function uses this argument as a limit.

My understanding is that you call (random t) once, eg after Emacs
starts up or when your file is loaded.  After this, you can call
(random 42) to obtain numbers in the desired range.

Does it not work that way?  I think it's intended to work that way.
If it doesn't, that might be a bug.


reply via email to

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