Skip to content

Documentation for randu() (PR#2141)

1 message · sta6ajb@leeds.ac.uk

#
Full_Name: Andrew J. Baczkowski
Version: 1.1.1, 1.5.0
OS: NT, unix
Submission from: (NULL) (129.11.159.161)


Help documentation for randu() has incorrect R code in Example.

Should replace line 4

seed <<- ((2^16) + 3) * seed)

by

seed <<- ((2^16) + 3) * seed) %% (2^31)

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._