Guest User

Untitled

a guest
Apr 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static function theShuffler(mix:Array,cuantos:int){
  2.             var r:int,i:int,e:int,len:int=mix.length;
  3.             for (i = 0; i<cuantos; i++){
  4.                 e = mix[i];
  5.                 r = Math.floor(Math.random() * len);
  6.                 mix[i] = mix[r];
  7.                 mix[r] = e;
  8.             }
  9.         }
Add Comment
Please, Sign In to add comment