[PD] help_random/seed

Martin Peach martin.peach at sympatico.ca
Sun Jul 5 23:36:42 CEST 2009


Andrew Faraday wrote:
> To be honest an oscillator in that setting might do the job just as 
> well, just so long as the figure isn't requested with the same 
> regularity as the oscillation.
>  

Yes, it's a subjective thing. The attached patch makes a sequence of 1s 
and 0s. You need to pack them into 16s to get the usual 0-65535 range. 
The output will be more random than the input [noise~], but it probably 
sounds exactly the same if you play it back at the audio rate.

Martin


>  > Date: Sun, 5 Jul 2009 12:44:05 -0400
>  > From: martin.peach at sympatico.ca
>  > To: cemthemuteguney at yahoo.com
>  > CC: pd-list at iem.at
>  > Subject: Re: [PD] help_random/seed
>  >
>  > cem guney wrote:
>  > > hi,
>  > >
>  > > thanks much for your response!
>  > >
>  > > also in regards to your explanation,
>  > >
>  > > "It would be nice if the random source could be independently 
> specified
>  > > for all the pd objects that use random numbers,
>  > > since the count of unreachable combinations when using the standard
>  > > deterministic chaos generators is infinite"
>  > >
>  > > any application examples as to why it would be nice if the random 
> source
>  > > could be independently specified?
>  > >
>  >
>  > Well I think it's mainly a philosophical thing about the meaning of
>  > 'random', but probably there are sequence generators for music that
>  > sound different with 'truly' random vs pseudo-random numbers. Sometimes
>  > you may want a repeating chaotic sequence, sometimes a completely random
>  > one.
>  >
>  > For cryptography, as in a one-time pad, pseudo-random is relatively easy
>  > to crack. There are at most 65536 different sequences with typical
>  > pseudo-random generators, but that's not any inherent limitation of
>  > pseudo-random, just the particular implementation that's often used.
>  >
>  > Also with games like rolling dice or shuffling cards, you probably want
>  > it to be completely unpredictable, or regular players will begin to
>  > recognize patterns.
>  >
>  > Pseudo-random white noise playing at audio rate will actually be a
>  > repeating waveform several minutes or hours long. It's up to you if that
>  > matters or not.
>  >
>  > Martin
>  >
>  > _______________________________________________
>  > Pd-list at iem.at mailing list
>  > UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 
> ------------------------------------------------------------------------
> Beyond Hotmail - see what else you can do with Windows Live. Find out 
> more. <http://clk.atdmt.com/UKM/go/134665375/direct/01/>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pseudo_hardware_random_bit_generator.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20090705/aa6392b7/attachment.asc>


More information about the Pd-list mailing list