[PD] Random without repeating numbers

Ivan Franco ivan.franco at ydreams.com
Thu Nov 28 15:48:46 CET 2002


Hola Enrique, list!

maybe just this??

#N canvas 177 273 522 316 10;
#X obj 134 55 random 5;
#X obj 134 31 bng 15 250 50 0 empty empty empty 0 -6 32 8 -262144 -1
-1;
#X obj 147 77 t f b;
#X obj 190 148 ==;
#X obj 189 171 sel 1;
#X obj 189 193 bng 15 250 50 0 empty empty empty 0 -6 32 8 -262144
-1 -1;
#X obj 219 193 bng 15 250 50 0 empty empty empty 0 -6 32 8 -262144
-1 -1;
#X obj 143 117 v new;
#X obj 281 110 v old;
#X text 175 206 same;
#X text 213 208 differ;
#X obj 220 228 v new;
#X floatatom 220 251 5 0 0;
#X obj 281 53 loadbang;
#X msg 281 78 1;
#X obj 137 96 t b f;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 15 0;
#X connect 2 1 8 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 4 1 6 0;
#X connect 5 0 1 0;
#X connect 6 0 11 0;
#X connect 7 0 3 0;
#X connect 8 0 3 1;
#X connect 11 0 12 0;
#X connect 11 0 8 0;
#X connect 13 0 14 0;
#X connect 14 0 8 0;
#X connect 15 0 7 0;
#X connect 15 1 7 0;

cheers
Ivan

At 13:19 +0000 28/11/02, Enrique Franco wrote:
>Hi,
>
>Does anyone knows how to get the random object working without 
>repeating numbers?
>I mean, for instance, if the random range is 5 I want to get a 
>different number each time.
>
>Cheers,
>
>Enrique
>
>--
>Tel: +353-61-202741
>Fax: +353-61-202734
>Room CS2-036, Interaction Design Centre
>CSIS Building
>University of Limerick
>Limerick
>Ireland
>
>http://www.ul.ie/~idc/
>http://www.iua.upf.es/~ffranco
>
>
>
>
>
>
>
>_______________________________________________
>PD-list mailing list
>PD-list at iem.kug.ac.at
>http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20021128/3d85488f/attachment.htm>


More information about the Pd-list mailing list