rStats.js v1.3.0
    Preparing search index...

    Function rpareto

    • Random numbers from the Pareto distribution. Equivalent to extraDistr::rpareto(n, a = 1, b = 1) in R.

      Parameters

      • n: number
      • options: { a?: number; b?: number } = {}

      Returns number[]

      setSeed(1);
      rpareto(2, { a: 3, b: 1 }); // [1.555872, 1.390286]