Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///  Populates the tensor with random values from 0 to n, using a newly initialized Random number geneator.
/// </summary>
/// <param name="n">The upper limit for the values to be generated</param>
Populates the tensor with random values from 0 to n, using a newly initialized Random number geneator.
Populates the tensor with random values from 0 to n using a newly initialized Random number geneator .
public void Random (long n)
        {
            using (var r = new RandomGenerator ())
                CappedRandom (r, n);
        }
public void Random ( long n ) { using ( var r = new RandomGenerator ( ) ) CappedRandom ( r , n ) ; }
Populates the tensor with random values from 0 to n, using a newly initialized Random number geneator.
Populates the tensor with random values from 0 to n using a newly initialized Random number geneator .
n
long
The upper limit for the values to be generated
The upper limit for the values to be generated