title: How can I make this google sheets script code shorter/faster?
body: <p>The code is pretty self-explanatory. Just have a lot of ranges that I need to be randomized independently. For example, range('W1:W4') should not get mixed up with range('W5:W8'), so therefore I cannot just randomize range('W1:W80'). Any help or advice would be great! Thanks a lot. Currently, the code takes a bit longer to run than I would like (14 seconds).</p>
  
  <pre><code>function clickStart() {
  
    var spreadsheet = SpreadsheetApp.getActive();
    spreadsheet.getRange('T2:T21').randomize();
    spreadsheet.getRange('Y1:Y20').randomize();
    spreadsheet.getRange('Y21:Y40').randomize();
    spreadsheet.getRange('Y41:Y60').randomize();
    spreadsheet.getRange('Y61:Y80').randomize();
    spreadsheet.getRange('W1:W4').randomize();
    spreadsheet.getRange('W5:W8').randomize();
    spreadsheet.getRange('W9:W12').randomize();
    spreadsheet.getRange('W13:W16').randomize();
    spreadsheet.getRange('W17:W20').randomize();
    spreadsheet.getRange('W21:W24').randomize();
    spreadsheet.getRange('W25:W28').randomize();
    spreadsheet.getRange('W29:W32').randomize();
    spreadsheet.getRange('W33:W36').randomize();
    spreadsheet.getRange('W37:W40').randomize();
    spreadsheet.getRange('W41:W44').randomize();
    spreadsheet.getRange('W45:W48').randomize();
    spreadsheet.getRange('W49:W52').randomize();
    spreadsheet.getRange('W53:W56').randomize();
    spreadsheet.getRange('W57:W60').randomize();
    spreadsheet.getRange('W61:W64').randomize();
    spreadsheet.getRange('W65:W68').randomize();
    spreadsheet.getRange('W69:W72').randomize();
    spreadsheet.getRange('W73:W76').randomize();
    spreadsheet.getRange('W77:W80').randomize();
    spreadsheet.getRange('H10:H12').randomize();
    spreadsheet.getRange('H14:H16').randomize();
    spreadsheet.getRange('H18:H20').randomize();
    spreadsheet.getRange('H22:H24').randomize();
    spreadsheet.getRange('H26:H28').randomize();
    spreadsheet.getRange('H30:H32').randomize();
    spreadsheet.getRange('H34:H36').randomize();
    spreadsheet.getRange('H38:H40').randomize();
    spreadsheet.getRange('H42:H44').randomize();
    spreadsheet.getRange('H46:H48').randomize();
    spreadsheet.getRange('H50:H52').randomize();
    spreadsheet.getRange('H54:H56').randomize();
    spreadsheet.getRange('H58:H60').randomize();
    spreadsheet.getRange('H62:H64').randomize();
    spreadsheet.getRange('H66:H68').randomize();
    spreadsheet.getRange('H70:H72').randomize();
    spreadsheet.getRange('H74:H76').randomize();
    spreadsheet.getRange('H78:H80').randomize();
    spreadsheet.getRange('H82:H84').randomize();
    spreadsheet.getRange('H86:H88').randomize();
  };
  </code></pre>