On 27/01/2022 10:33, IOhannes m zmoelnig wrote:
> On 1/27/22 10:10, martin brinkmann wrote:
>> thanks, i'll do that. i used [shell] basically for getting a random-seed
>> (and filenames) via date, and it affects only a few patches,
> if you need to read the date, you probably should use zexy's [date]
> (resp [time]).
> it works on all platforms, and is *much* faster than a call to an
> external program.

i need the date-as-a-filename and seeding [random] only
when the patch is loaded, or when a file is saved,
so speed does not matter much.
platform independence would be nice though, and a 'vanilla'-solution even nicer...

> if you want to generate a seed for your random number, you can use the
> new built in [file] to read some bytes from /dev/random (from your usage
> use [shell] together with date, i figure you already use a unix-like
> system).

yes. and  i'll try that.

> the randomness should be much better than just using some date-based
> thingy.

and better randomness would be great. [random] feels a bit
more like a random walk, it looks like it tends to repeat recent
values. (i might be mistaken, i tend to see patterns in noise...)

bis denn!
        martin



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to