Le 14/11/2012 18:30, Andrew Faraday a écrit :
Hi
Is the [time] object in pd-vanilla? If so you could use the milliseconds output as your seed...
[loadbang] | [time] | (milliseconds) [random]
Date: Wed, 14 Nov 2012 14:53:44 +0000 From: enrique@netpd.org To: pd-list@iem.at Subject: [PD] Random number generation quest
Hi List!
Can a random number form 0 to 100 be generated with the following
requirements:
- No externals / Vanilla Pd only
- DSP must be off
- The patch is loaded with Pd through command line interface i.e.
pd -noprefs -nogui givemerandom.pd
- The output should not always be the same number
Thanks for looking into it
eni
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Yep, but the first requirement for Enrique was :
So it doesn't work with zexy [time] (this not in Pd Vanilla ;). ++
Jack