gogins / csound-ac

A C++ library for algorithmic composition, designed to be used with Csound, with both C++ and Python interfaces.
GNU Lesser General Public License v2.1
6 stars 0 forks source link

Implement programmatic control of `StrangeAttractor::searchForAttractor` #5

Closed gogins closed 1 year ago

gogins commented 1 year ago

Do I always get the same code from the default search? If so, make it possible to reseed the random number generator or whatever else enables a search that finds different codes.

Yes, I always get the same code from the default search. And the reason is, the StrangeAttractor class has a Randommember instance that has a default seed.

gogins commented 1 year ago

I used Random::seed. This is a workaround but is enough for now.