build/modelscript.umd.js
function(n, loc, scale) {
                    n = this._v(n, "n");
                    loc = this._v(loc, "r", 0);
                    scale = this._v(scale, "nn", 1);

                    var toReturn = [];

                    for(var i=0; i<n; i++) {
                        var core = this.sample([-1,1])[0] * ln(this.prng());

                        var x = loc - scale * core;

                        toReturn[i] = x;
                    }

                    return toReturn
                }
function(n, loc, scale) {
                    n = this._v(n, "n");
                    loc = this._v(loc, "r", 0);
                    scale = this._v(scale, "nn", 1);

                    var toReturn = [];

                    for(var i=0; i<n; i++) {
                        var core = this.sample([-1,1])[0] * ln(this.prng());

                        var x = loc - scale * core;

                        toReturn[i] = x;
                    }

                    return toReturn
                }
function ( n , loc , scale ) { n = this . _v ( n , "n" ) ; loc = this . _v ( loc , "r" , 0 ) ; scale = this . _v ( scale , "nn" , 1 ) ; var toReturn = [ ] ; for ( var i = 0 ; i < n ; i ++ ) { var core = this . sample ( [ - 1 , 1 ] ) [ 0 ] * ln ( this . prng ( ) ) ; var x = loc - scale * core ; toReturn [ i ] = x ; } return toReturn }
Syntax as in R library VGAM 

@param n The number of random variates to create. Must be a positive integer
@param loc Mean
@param scale Scale parameter
@returns {Array} Random variates array
Syntax as in R library VGAM