lilypond-user
[Top][All Lists]
Advanced

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

Re: how to repeat a scheme function that creates a Score


From: Aaron Hill
Subject: Re: how to repeat a scheme function that creates a Score
Date: Tue, 05 Apr 2022 22:58:50 -0700

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



reply via email to

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