Answers for "array mit random zahl mischen"

0

array mit random zahl mischen

function arrayShuffle(int[] in){
  int tmp, rand;
Random() r = new Random()
  for(var i =0; i < this.length; i++){
    rand = r.nextInt(in.length);
    tmp = in[i]; 
    in[i] = in[rand]; 
    in[rand] =tmp;
  }
}
Posted by: Guest on February-08-2021

Browse Popular Code Answers by Language