Random numbers from the Cauchy distribution. Equivalent to R's rcauchy().
rcauchy()
Number of values to generate (fractions are truncated, as in R).
Optional
Location. Default 0.
0
Scale. Default 1.
1
An array of n values; NaN for invalid parameters.
n
NaN
setSeed(1);rcauchy(2, { location: 0, scale: 1 }); // [1.10252, 2.353831] Copy
setSeed(1);rcauchy(2, { location: 0, scale: 1 }); // [1.10252, 2.353831]
Random numbers from the Cauchy distribution. Equivalent to R's
rcauchy().