Re: random numbers

"Steven G. Johnson" <[email protected]>
Newsgroups gmane.comp.science.photonic-bands
Message-ID <[email protected]>
On Jun 18, 2008, at 12:25 PM, matt wrote:
> (use-modules (srfi srfi-13))
> (use-modules (ice-9 rdelim))
>
> (set! *random-state* (seed->random-state (current-time)))
> (print (random:uniform))
>
> I don't recall which if any of those modules are necessary (perhaps
> neither).

The modules are unnecessary.

See also the documentation on random numbers in the Guile manual,  
which defines a number of different random-number distributions that  
can be generated.

http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Random.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.