
{{alias}}( r, p )
    Returns a pseudorandom number drawn from a negative binomial distribution.

    If `p` is not in the interval `(0,1)`, the function returns `NaN`.

    If `r` or `p` is `NaN`, the function returns `NaN`.

    Parameters
    ----------
    r: integer
        Number of successes until experiment is stopped.

    p: number
        Success probability.

    Returns
    -------
    r: integer
        Pseudorandom number.

    Examples
    --------
    > var r = {{alias}}( 20, 0.8 );


{{alias}}.factory( [r, p, ][options] )
    Returns a pseudorandom number generator (PRNG) for generating pseudorandom
    numbers drawn from a negative binomial distribution.

    If provided `r` and `p`, the returned PRNG returns random variates drawn
    from the specified distribution.

    If not provided `r` and `p`, the returned PRNG requires that both `r` and
    `p` be provided at each invocation.

    Parameters
    ----------
    r: integer (optional)
        Number of successes until experiment is stopped.

    p: number (optional)
        Success probability.

    options: Object (optional)
        Options.

    options.seed: any (optional)
        Pseudorandom number generator seed.

    Returns
    -------
    rand: Function
        Pseudorandom number generator (PRNG).

    Examples
    --------
    // Basic usage:
    > var rand = {{alias}}.factory();
    > var r = rand( 20, 0.3 );
    > r = rand( 10, 0.77 );

    // Provide `r` and `p`:
    > rand = {{alias}}.factory( 10, 0.8 );
    > r = rand();
    > r = rand();


{{alias}}.NAME
    Generator name.

    Examples
    --------
    > var str = {{alias}}.NAME
    'negative-binomial'


{{alias}}.PRNG
    Underlying pseudorandom number generator.

    Examples
    --------
    > var prng = {{alias}}.PRNG;


{{alias}}.SEED
    Pseudorandom number generator seed.

    Examples
    --------
    > var seed = {{alias}}.SEED;

    See Also
    --------

