title: How to refresh random JS variables in Google Sheets
body: <p>I have a script in Google Sheets that generates a random Hiragana character and it works fine, but it doesn't refresh the random unless I rewrite the function. Is there a way to refresh random JavaScript elements without having to rewrite the function or putting it back in the sheet? </p>
  
  <p>Here is my code:</p>
  
  <pre><code>function RandomVowel() {
    var array = ["あ","い","う","え","お"];
    var RandomValue = array[Math.floor(Math.random() * array.length)];
    return RandomValue
  }
  </code></pre>