random provides GNU R with easy access to the true random numbers provided by random.org created by Mads Haahr. random is portable and does not depend on any hardware- or operating system-specific features to supply true (i.e. physical) randomness.
The package provides three simple funcions:
randomNumberssupplies random numbers, potentially with replications, over an interval--like rolling a die (with more than six sides) multiple times;
randomSequencesupplies a reshuffled sequence given a lower and upper bound for the sequence;
randomStringssupplies strings of fixed length with optional digits, lower- and upper-case letters.
randomQuotaqueries the server about the remaining bits for the given requester IP address. The function
quotaChecksimply checks whether this value is positive.
Both documents are included in the R package and accessible via the
vignette() function once the package is loaded.
Alternatively, you can also get random from a Comprehensive R Archive Network (CRAN) node in the src/contrib directory.
install.package("random")from inside GNU R. Alternative,
R CMD INSTALL random_*.tar.gzwill install from command prompt.