From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!skynet.be!skynet.be!ossa.telenet-ops.be!nmaster.kpnqwest.net!nreader3.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: Clisp randomness References: Mail-Copies-To: never From: Erik Naggum Message-ID: <3228516700654574@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Apr 2002 02:11:41 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader3.kpnqwest.net 1019527901 193.71.199.50 (Tue, 23 Apr 2002 04:11:41 MET DST) NNTP-Posting-Date: Tue, 23 Apr 2002 04:11:41 MET DST Xref: archiver1.google.com comp.lang.lisp:32204 * losthalo@Bast.debian.org (bruce) | I'm trying to write a card-playing game using Clisp, and am running into | the problem of not getting a very "random" number from the RANDOM | function. It's producing the same two hands on every start in a fresh | Clisp, thus the game tends to play much the same way each time it's run. | How can I either find something random to set to *random-state*, or else | find some other function to fill this gap? See the entry for the function random in the standard and follow the links to the variable *random-state* and the function make-random-state. /// -- In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief. Post with compassion: http://home.chello.no/~xyzzy/kitten.jpg