SetPackageSeed           package:rlecuyer           R Documentation

_S_e_t _t_h_e _i_n_i_t_i_a_l _s_e_e_d _o_f _t_h_e _p_a_c_k_a_g_e _o_r _s_t_r_e_a_m

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

     Sets the initial seed of the package or stream.

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

     .lec.SetPackageSeed(seed)
     .lec.SetSeed (name, seed)

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

    name: a character string giving the name of the stream.

    seed: a vector of six integers. If it is shorter, the seed is
          extended to the length of 6 by default values 12345. If it is
          longer, it is truncated to the length of 6 by eliminating the
          last elements. 

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

     Each state of a stream is given by three integer vectors of length
     6: Ig gives the initital state of the stream, Bg gives the
     starting state of the substream that contains the current state,
     Cg gives the current state.  Function '.lec.SetPackageSeed' sets
     Cg, Bg and Ig to the value of 'seed'. Function '.lec.SetSeed' sets
     Ig to 'seed'. L'Ecuyer recommends to use the 'ResetStream'
     functions instead of 'SetSeed'.

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

     The (possibly modified) seed that has been used.

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

     'ResetNextSubstream'

