[flashpro] Array order randomizer?
elusive
elu at elusive.de
Thu Mar 17 03:54:09 EST 2005
i dont know if you mean sonething special when you say 'method' bu this
method works fine for me:
a = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 11);
b = new Array();
while (a.length>0) {
n = random(a.length);
b.push(a[n]);
a.splice(n, 1);
}
elu
Am 17.03.2005 um 03:04 schrieb Timo Stamm:
> Does anybody have a method for randomizing an array?
>
>
> Timo
> ------------------------------------------------------------------
> send message to the list: mailto:flashpro at muinar.org
> [FlashPro] list info, subscribe, archive: http://flash-list.com/
> There's also a WebPro mailing list: http://webdesign-list.com/
> cutting-edge sounds for flash: http://flash-sounds.com/
>
More information about the FlashPro
mailing list