Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///  Populates the tensor with random values from min to max, using the provided random source generator.
/// </summary>
/// <param name="source">The random generator source</param>
/// <param name="min">The lower limit for the values to be generated</param>
/// <param name="max">The upper limit for the values to be generated</param>
Populates the tensor with random values from min to max, using the provided random source generator.
Populates the tensor with random values from min to max using the provided random source generator .
public void ClampedRandom (RandomGenerator source, long min, long max)
        {
            if (source == null)
                throw new ArgumentNullException (nameof (source));
            THShortTensor_clampedRandom (handle, source.handle, min, max);
        }
public void ClampedRandom ( RandomGenerator source , long min , long max ) { if ( source == null ) throw new ArgumentNullException ( nameof ( source ) ) ; THShortTensor_clampedRandom ( handle , source . handle , min , max ) ; }
Populates the tensor with random values from min to max, using the provided random source generator.
Populates the tensor with random values from min to max using the provided random source generator .
source
RandomGenerator
The random generator source
The random generator source
min
long
The lower limit for the values to be generated
The lower limit for the values to be generated
max
long
The upper limit for the values to be generated
The upper limit for the values to be generated