On 4/5/2022 11:58 PM, Aaron Hill wrote:
On 2022-04-05 10:40 pm, Jeff Olson wrote:
Question (b):

My secondary question is very simple.  How do you set the seed for
scheme's "random" function (used in my gen-music.ily).  I'd like to
get the repeatability of a pseudo-random number generator.

;;;;
(set! *random-state* (seed->random-state 42))
;;;;

Review the Guile documentation [1]:

[1]: https://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Random.html#Random


-- Aaron Hill

Thanks, Aaron, for answering the ultimate question [2].

[2] https://en.wikipedia.org/wiki/42_(number)

Jeff


Reply via email to