function shuffle(a,b){
return random(3) - 1;
}
a = [0,1,2,3,4,5,6,7,8,9];
a.sort(shuffle);
trace(a);
--
bokel
www.bokelberg.de/actionscript
--
I've never thought of using a custom sort function to do that.
Can I use this one? Sure I'll add copyright :)
cheers!
TK
--
bokel
www.bokelberg.de/actionscript
--
"Tatsuo Kato" <tuki...@ae.wakwak.com> schrieb im Newsbeitrag
news:B75AFE2D.16D43%tuki...@ae.wakwak.com...
cheers,
TK
cheers,
--
bokel
www.bokelberg.de/actionscript
--
"Tatsuo Kato" <tuki...@ae.wakwak.com> schrieb im Newsbeitrag
news:B75B0845.16D51%tuki...@ae.wakwak.com...