</ul>
<p>Example</p>
<pre><code class="language-javascript">&gt;&gt;&gt; let a = torch.rand([3,2], false, 'gpu');
&gt;&gt;&gt; console.log(a.data);
//[[0.110, 0.122],
// [0.033, 0.105],
// [0.907, 0.202]]
</code></pre>
<p><br></p>
<h2 id="torchrandint">torch.randint</h2>
<pre><code>torch.randint(low,
            high,
            *shape,
            requires_grad=false,
            device='cpu') → Tensor
</code></pre>
<p>Creates new instance of the Tensor class filled with random integers between <code>lo