-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"seed" does not work on [drunk] / "seed 0" not working for [urn] #649
Comments
what is the problem with 'seed 0' in drunk? how does it not behave as it was supposed to? How was it supposed to behave and how does it behave? |
seems 'seed' doesn't work at al... :) why do you use this anyway? you know ELSE has a nice and better 'drunkard' object that actually just works? :) |
EDIT: mixed up the reply for two different messages.
If I have, for example, two [random 1000] on different parts of my patch and before the numbers are generated I send them a message with "seed 0", they will generate the same numbers, at the same order, which is the whole point of seeding the random number generator. As one would expect, if I send any number instead of 0 the same thing will happen, desired behavior. |
I apologize, but I am confused now. I even tested again, and seed not only DOES clearly works on [drunk] (when it is seeded by any integer bigger than 0), it is also on the drunk-help.pd I don't know how to test this better, but I created multiple [drunk 1000] objects, seeded them on pairs with different numbers and generated a bunch of numbers on them at the same time. All absolutely consistent, generating the same numbers on the same order if they have the same seed, except when it is "seed 0". I didn't know about the drunkard object, as I have been using drunk for years now. Thank you the suggestion, I will check that one out later today. As for why I use it, which I am not sure should be the topic of the thread, I need all the numbers generated by [random], [urn], and [drunk] to be the same, based on a single input (converted to a number). My solution was to use the input number to seed a [random] object, which generates 20 numbers when the patch boots. These 20 numbers are used for everything in the project, including seeding the urns and drunks. Eventualy, some of these numbers would be 0, which would not be a big deal if, on the documentation, it was explained that "seed 0" does not work for [urn] and [drunk], even though it works for [random]. |
I mentioned that and changed the title of the bug report, so, yeah, the 'seed' message is simply not working, right? |
I see that unlike [drunk], [urn] works ok with the seed message, but not with "seed 0". btw, [else/rand.u] is much better than [urn] I think :) |
Thank you for the suggestion, I will definitely check it out and starting using it on my future projects. |
If it is "seed 0", no it does not |
I know that, it's not what I asked. As I see, 'seed' is not working at all, regardless of the seed value Anyway, I will check both cases and fix for the next release |
I am sorry, it is my first time opening an issue and I am not used with this. It works with any other value, only not with 0. In any case, I just realized that I am getting "rand_seed failed (newticks 689663796)" on the terminal, which I am not sure how I missed before. I am sure it has something to do with it since I do not get this print at all on my terminal when I use any seed that is not 0. Again, this behavior is also consistent between urn and drunk. |
It appears that "seed 0" does not work as expected with [drunk]. While this might not be a major issue on its own, the lack of documentation on this behavior can be confusing—especially since "seed 0" works correctly with [random]. Users may assume the behavior is consistent between [drunk] and [random], leading to unexpected results.
Would it be possible to clarify this behavior in the documentation, or ensure "seed 0" works similarly across both objects?
The text was updated successfully, but these errors were encountered: