First CRAN release for dqrng

May 14, 2018
By

(This article was first published on R – daqana Blog, and kindly contributed to R-bloggers)

The dqrng package is now available from CRAN. It is possible to install it using

install.packages("dqrng")

Besides this simplified installation the included RNGs have been updated: Xorshift128+ and Xorshift1024* have been removed in favor of the new Xorshiro256+, c.f. http://xoshiro.di.unimi.it/. Using the provided RNGs from R is unchanged:

library(dqrng)
dqRNGkind("Xoroshiro128+")
dqset.seed(42)
dqrunif(5, min = 2, max = 10)
## [1] 4.498747 9.500660 2.457009 5.249195 2.370585
dqrnorm(5, mean = 3, sd = 5)
## [1]  5.748100 -4.368370 -1.231515 -7.552863  8.959892
dqrexp(5, rate = 4)
## [1] 0.002043171 0.261604407 0.132934079 0.048892818 0.549762841

To leave a comment for the author, please follow the link and comment on their blog: R – daqana Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)