Initializes a random complex number.

// Returns a random complex number with real and imaginary parts between 0 and 1
const z = Chalkboard.comp.random();
  • Parameters

    • Optionalinf: number = 0

      The lower bound

    • Optionalsup: number = 1

      The upper bound

    Returns ChalkboardComplex