ixfx
    Preparing search index...

    Function random

    • Returns a random bipolar value

      const r = Bipolar.random(); // -1...1 random
      

      Options can be provided, eg.

      Bipolar.random({ max: 0.5 }); // -0.5..0.5 random
      

      Use randomSource if you want to generate random values with same settings repeatedly.

      Parameters

      • OptionalmaxOrOptions: number | Readonly<{ max: number; min?: number; source?: RandomSource }>

      Returns number