Chalkboard - v3.0.4
    Preparing search index...

    Function random

    • Initializes a random tensor.

      Parameters

      • inf: number

        The lower bound

      • sup: number

        The upper bound

      • ...size: number[]

        The size

      Returns ChalkboardTensor

      const result = Chalkboard.tens.random(-1, 1, 2, 2, 2); // Returns a random 2-by-2-by-2 tensor