Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function theShuffler(mix:Array,cuantos:int){
- var r:int,i:int,e:int,len:int=mix.length;
- for (i = 0; i<cuantos; i++){
- e = mix[i];
- r = Math.floor(Math.random() * len);
- mix[i] = mix[r];
- mix[r] = e;
- }
- }
Add Comment
Please, Sign In to add comment