Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage random seed in C++ #5

Open
Quentin62 opened this issue Jul 6, 2021 · 1 comment
Open

Manage random seed in C++ #5

Quentin62 opened this issue Jul 6, 2021 · 1 comment
Labels
C++ The issue concerns the C++ code enhancement New feature or request

Comments

@Quentin62
Copy link
Contributor

Currently, the random seed can not be fixed in the c++ code.

unif_rand and unif functions are used to generate random numbers.
See https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Random-numbers to manage the seed

@Quentin62 Quentin62 added the enhancement New feature or request label Jul 6, 2021
@Quentin62 Quentin62 changed the title Mange random seed in C++ Manage random seed in C++ Jul 6, 2021
@Quentin62 Quentin62 added the C++ The issue concerns the C++ code label Jul 6, 2021
@Quentin62
Copy link
Contributor Author

seems to be managed by Rcpp

set.seed(42)
x <- simulISR(10, 0.9, 1:4)
set.seed(42)
x <- simulISR(10, 0.9, 1:4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ The issue concerns the C++ code enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant