ixfx
    Preparing search index...

    Function bipolarSource

    • Source for random bipolar values

      const r = bipolarSource();
      r(); // Produce random value on -1...1 scale

      Options can be provided, for example

      // -0.5 to 0.5 range
      bipolarSource({ max: 0.5 });

      Parameters

      • OptionalmaxOrOptions: number | RandomNumberOptions

        Maximum value (number) or options for random generation

      Returns RandomSource