setRNG                package:setRNG                R Documentation

_S_e_t _t_h_e _R_a_n_d_o_m _N_u_m_b_e_r _G_e_n_e_r_a_t_o_r

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

     Set the RNG or return information about the setting of the RNG.

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

         setRNG(kind=NULL, seed=NULL, normal.kind=NULL)
         

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

     None required 

    kind: a character string.

    seed: a vector of numbers (depending on kind).

normal.kind: a character string.

_D_e_t_a_i_l_s:

     Sets the uniform and normal random number generators and the seed.
     The old setting is returned in a format which can be used in
     another call to setRNG. (This would reset to the original value.)
     If no arguments are given the current setting is  returned. In R
     see RNGkind for more details.

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

     The old setting.

_S_e_e _A_l_s_o:

     'RNGkind', 'set.seed', 'runif', 'rnorm', 'random.number.test'

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

     setRNG(kind="Wichmann-Hill", seed=c(979,1479,1542), normal.kind="Box-Muller")
     rnorm(10)

