title: Generate Random Number in Pyscript
body: <p>I have created this file sample.py:</p>
  <p><a href="https://pastebin.com/KLsRqumV" rel="nofollow noreferrer">https://pastebin.com/KLsRqumV</a></p>
  <p>and then I created this file in HTML, in which I inserted py-script:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width,initial-scale=1" /&gt;
  
      &lt;title&gt;PyScript Tags&lt;/title&gt;
  
      &lt;link rel="icon" type="image/png" href="favicon.png" /&gt;
      &lt;link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" /&gt;
  
      &lt;script defer src="https://pyscript.net/latest/pyscript.js"&gt;&lt;/script&gt;
  
      &lt;py-env&gt;
          -paths:
              -/sample.py
      &lt;/py-env&gt;
    &lt;/head&gt;
  
    &lt;body&gt;
       &lt;br&gt;
      Alcuni elementi di esempio da utilizzare in Pyscript:
  &lt;strong&gt;Stampa numeri random tramite il recupero del file random.py&lt;/strong&gt;
  &lt;b&gt;Il numero fortunato è &lt;label id="random"&gt;&lt;/label&gt;&lt;/b&gt;
  &lt;py-script&gt;
      from sample import generate_random_number
      pyscript.write('random', generate_random_number())
  &lt;/py-script&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But don't show any random number.</p>
  <p>Through DevTools by Chrome I see this alert:
  <a href="https://i.stack.imgur.com/lu4xi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lu4xi.png" alt="enter image description here" /></a></p>
  <p>I use VS Code and add on 'Go Live', and reload the Chrome page when I edit HTML code.
  I noticed that HTML code and sample.py are on the same path. what could be the problem?</p>