[Top][All Lists]

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

How to create random characters?

From: Brad Collins
Subject: How to create random characters?
Date: Sun, 14 Dec 2003 16:59:52 +0700
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt)

I'm hoping there is a simple function in elisp to do this....

I want to generate a random id which is in the format of XXX-0000
where 'XXX' is made up of ascii characters a-z and 0000 is a random
number 0000-9999.

I found random -- so that (random 10000) produces the number very
nicely but I can't find anything that will produce three random
characters in the same way.

Is there a simple way of doing this that I haven't found?



Brad Collins
Chenla Labs
Bangkok, Thailand

reply via email to

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