Skip to contents

Generate random double exponential variates

Usage

rdex(n, mean = 0, var = 1)

Arguments

n

Number of random variates to generate.

mean

Mean; default: 0

var

Variance; default: 1

Examples

rdex(10)
#>  [1] -0.1152774 -0.5058894  0.2227573 -0.7315327  0.1634433  0.7192155
#>  [7]  1.2094123  0.7117668 -0.1103441 -0.5924433
a <- rdex(10000, mean=3, var=4)
var(a)
#> [1] 4.048672