ziggurat              package:SuppDists              R Documentation

_T_h_e _Z_i_g_g_u_r_a_t _n_o_r_m_a_l _a_n_d _e_x_p_o_n_e_n_t_i_a_l _g_e_n_e_r_a_t_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     Generates normal and exponential random pseudo-random numbers by
     the method of Marsaglia and Tsang.

_U_s_a_g_e:

     rziggurat(n, normal=TRUE, new.start=FALSE, seed=556677)

_A_r_g_u_m_e_n_t_s:

       n: number of values to generate. If n is a vector, length(n)
          values will be generated

  normal: logical scalar; if TRUE normal values are produced, otherwise
          exponential values

new.start: logical scalar. If TRUE the generator will be started afresh
          using the seed

    seed: scalar 32 bit starting integer

_V_a_l_u_e:

     Generates a vector of pseudo random numbers in the range 0 to 1.

_N_o_t_e:

     This implementation running in R is approximately three times as
     fast as rnorm().

_A_u_t_h_o_r(_s):

     Bob Wheeler bwheeler@echip.com

_R_e_f_e_r_e_n_c_e_s:

     Marsaglia, George, and Tsang, Wai Wan. 2000. The Ziggurat method
     for generating random variables. Journal of Statistical software.
     5-8. <URL: http://www.jstatsoft.org/v05/i08/>

_E_x_a_m_p_l_e_s:

     rziggurat(50,new.start=TRUE)
     rziggurat(50)
     rziggurat(50,new.start=TRUE)

