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