title: I want to edit a Google Script so it will shuffle a specific row at a specific sheet
body: <p>In this <a href="https://docs.google.com/spreadsheets/d/15Yw4k_tCW7yhGHMzpjiRGZtypL2lyAhbb0PJAnAMij0/edit?usp=sharing" rel="nofollow noreferrer">example</a> I have tried this code:</p>
  
  <pre><code>function shuffleRows() {
    var ss=SpreadsheetApp.getActive();
    var sh=ss.getActiveSheet();
    var rg=sh.getDataRange();
    var vA=rg.getValues();
    var lr=sh.getLastRow();
    sheet.sort(function(a,b){return Math.floor(Math.random()*range)-Math.floor(Math.random()*range);
    });
    rg.setValues(sheet);
  }
  
  function onOpen() {
    var sheet = SpreadsheetApp.getActiveSpreadsheet();
    var entries = [{
      name : "Shuffle ZOO",
      functionName : "shuffleRows",
    }];
    sheet.addMenu("Shuffle ZOO", entries);
  };
  </code></pre>
  
  <p>It works fine when it comes to shuffle an entire sheet. However I need the script to shuffle a specific range, i.e I2:I8 in a specific sheet, i.e. Ark 5.</p>
  
  <p>I think I have to replace with these line:</p>
  
  <pre><code>  var sheet = SpreadsheetApp.getActive().getSheetByName("Ark5");
    var range = sheet.getRange("I2:I8");
  </code></pre>
  
  <p>What do I need to edit?</p>