Site icon R-bloggers

First CRAN release for dqrng

[This article was first published on R – daqana Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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 about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.