The R Project SVN R

Rev

Rev 11768 | Rev 40615 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11768 Rev 25118
Line 15... Line 15...
15
 
15
 
16
  Optionally, the user can supply the entry point \code{user_unif_init},
16
  Optionally, the user can supply the entry point \code{user_unif_init},
17
  which is called with an \code{unsigned int} argument when
17
  which is called with an \code{unsigned int} argument when
18
  \code{\link{RNGkind}} (or \code{set.seed}) is called, and is intended
18
  \code{\link{RNGkind}} (or \code{set.seed}) is called, and is intended
19
  to be used to initialize the user's RNG code. The argument is intended
19
  to be used to initialize the user's RNG code. The argument is intended
20
  to be used to set the ``seeds''; it is the \code{seed} argument to
20
  to be used to set the \dQuote{seeds}; it is the \code{seed} argument to
21
  \code{set.seed} or an essentially random seed if \code{\link{RNGkind}}
21
  \code{set.seed} or an essentially random seed if \code{\link{RNGkind}}
22
  is called.
22
  is called.
23
 
23
 
24
  If only these functions are supplied, no information about the
24
  If only these functions are supplied, no information about the
25
  generator's state is recorded in \code{.Random.seed}. Optionally,
25
  generator's state is recorded in \code{.Random.seed}. Optionally,
26
  functions \code{user_unif_nseed} and \code{user_unif_seedloc} can be
26
  functions \code{user_unif_nseed} and \code{user_unif_seedloc} can be
27
  supplied which are called with no arguments and should return pointers
27
  supplied which are called with no arguments and should return pointers
28
  to the number of ``seeds'' and to an integer array of ``seeds''. Calls
28
  to the number of \dQuote{seeds} and to an integer array of
-
 
29
  \dQuote{seeds}.  Calls 
29
  to \code{GetRNGstate} and \code{PutRNGstate} will then copy this array
30
  to \code{GetRNGstate} and \code{PutRNGstate} will then copy this array
30
  to and from \code{.Random.seed}.
31
  to and from \code{.Random.seed}.
31
 
32
 
32
  A user-specified normal RNG is specified by a single entry point
33
  A user-specified normal RNG is specified by a single entry point
33
  \code{user_norm_rand}, which takes no arguments and returns a
34
  \code{user_norm_rand}, which takes no arguments and returns a