開始轉寄郵件:
寄件人: slimboyfatboyslim slimboyfatboyslim@slimboyfatboyslim.org 日期: 2004 年 4 月 18 日,週日 12:54:16AM Europe/Stockholm 收件人: derek holzer derek@x-i.net 標題: Re: [PD] random seed
yup, I experienced that in both PD and Max, actually it seems the seeds is not working....
“derek holzer”於 2004 年 4 月 18 日,週日 01:14AM 提到:
...and another thing...
has anybody noticed that it doesn't seem to matter what seed you give the [random] object, it just goes through the same sequence every time. At least on Linux. I remember different form windoze. Maybe there's a better way to generate a proper random seed?
d.
-- derek holzer ::: http://www.umatic.nl ---Oblique Strategy # 207: "Take away as much mystery as possible. What is left?"
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
slimboyfatboyslim http://www.slimboyfatboyslim.org
slimboyfatboyslim http://www.slimboyfatboyslim.org
Hello
To avoid this behaviour, it's best to NOT give a seed at all. Or to provide a seed that is always different (like the operating system's clock time).
Regards Dave Sabine.
David,
David Sabine wrote:
To avoid this behaviour, it's best to NOT give a seed at all. Or to provide a seed that is always different (like the operating system's clock time).
Precisely my first two attempts! I gave a seed from [shell] which gave current time, or none at all. The progression seemed pretty much the same no matter what.
Like I said, I remember it worked different on windoze, so I wonder if it has anything to do with PD's access to the random number pool in Linux. I guess that's one for Miller or Guenter to puzzel over ;-)
d.
Hi all,
I wonder if this is still a problem. I just tried 'random' in linux, gave it a seed (123), got a seqence out, seeded it again with 123, got the same sequence out, seeded it with 234, got a different sequence. Have any of you found that you get the same sequence from 'random' having fed it two different (integer) seeds !? This would be wrong.
c m
On Sun, Apr 18, 2004 at 01:51:13AM +0200, derek holzer wrote:
David,
David Sabine wrote:
To avoid this behaviour, it's best to NOT give a seed at all. Or to provide a seed that is always different (like the operating system's clock time).
Precisely my first two attempts! I gave a seed from [shell] which gave current time, or none at all. The progression seemed pretty much the same no matter what.
Like I said, I remember it worked different on windoze, so I wonder if it has anything to do with PD's access to the random number pool in Linux. I guess that's one for Miller or Guenter to puzzel over ;-)
d.
-- derek holzer ::: http://www.umatic.nl ---Oblique Strategy # 130: "Question the heroic"
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
To avoid this behaviour, it's best to NOT give a seed at all. Or to provide a seed that is always different (like the operating system's clock time).
are you sure about this??? the initial seed is given by this function:
static int makeseed(void) { static unsigned int random_nextseed = 1489853723; random_nextseed = random_nextseed * 435898247 + 938284287; return (random_nextseed & 0x7fffffff); }
and this seems to be pretty deterministic ... doesn't it?
Like I said, I remember it worked different on windoze, so I wonder if it has anything to do with PD's access to the random number pool in Linux. I guess that's one for Miller or Guenter to puzzel over ;-)
although every random object you will create has a different seed, if you load a patch at startup without giving seeds, the random objects will return the same results every time the patch is started ... on windows as on linux ...
cheers...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
was there ever a solution to this? is there even a way to get the time-of-day inside pd in order to send reasonably random seeds manually within pd?
pix.
On Sun, Apr 18, 2004 at 02:17:29PM +0200, Tim Blechmann wrote:
To avoid this behaviour, it's best to NOT give a seed at all. Or to provide a seed that is always different (like the operating system's clock time).
are you sure about this??? the initial seed is given by this function:
static int makeseed(void) { static unsigned int random_nextseed = 1489853723; random_nextseed = random_nextseed * 435898247 + 938284287; return (random_nextseed & 0x7fffffff); }
and this seems to be pretty deterministic ... doesn't it?
Like I said, I remember it worked different on windoze, so I wonder if it has anything to do with PD's access to the random number pool in Linux. I guess that's one for Miller or Guenter to puzzel over ;-)
although every random object you will create has a different seed, if you load a patch at startup without giving seeds, the random objects will return the same results every time the patch is started ... on windows as on linux ...
cheers...
Tim mailto:TimBlechmann@gmx.de ICQ: 96771783 -- The only people for me are the mad ones, the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn, like fabulous yellow roman candles exploding like spiders across the stars and in the middle you see the blue centerlight pop and everybody goes "Awww!" Jack Kerouac
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
pix wrote:
was there ever a solution to this? is there even a way to get the time-of-day inside pd in order to send reasonably random seeds manually within pd?
I would use [shell] for this.
I read:
pix wrote:
was there ever a solution to this? is there even a way to get the time-of-day inside pd in order to send reasonably random seeds manually within pd?
I would use [shell] for this.
and there is [time] and [date] in zexy IIRC one could of course always [loadbang] a [timer] on load and wait for the user to hit a bang
regards,
x
ahh, i was temporarily working with an empty pdrc because i'm making a patch for r4nd.org..
but i think zexy is an acceptable minimal requirement.
pix.
On Wed, Jun 09, 2004 at 01:28:12PM +0200, IOhannes m zmoelnig wrote:
pix wrote:
was there ever a solution to this? is there even a way to get the time-of-day inside pd in order to send reasonably random seeds manually within pd?
[time] and [date] (zexy)
mfg.asd.r IOhannes
In Windows, [time] anyways.
[date] fails with warning(date): dummy substitution and error: date: no method for 'bang' ... you might be able to track this down from the Find menu.
IOhannes m zmoelnig wrote:
pix wrote:
was there ever a solution to this? is there even a way to get the time-of-day inside pd in order to send reasonably random seeds manually within pd?
[time] and [date] (zexy)
mfg.asd.r IOhannes
PD-list mailing list PD-list@iem.at to manage your subscription (including un-subscription) see http://iem.at/cgi-bin/mailman/listinfo/pd-list
was there ever a solution to this? is there even a way to get the time-of-day inside pd in order to send reasonably random seeds manually within pd?
i still have the implementation of some high quality random number generators on my todo list ... well, not at a very high priority
cheers...