How to set random seed using RcppParallel and RcppArmadillo to permutation

Open
#205 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, r

Research direction

No files, tests, or entry points are mentioned. Start by reviewing the RcppParallel and RcppArmadillo documentation for shuffle and random-number seeding, then compare their behavior with R's set.seed and withr::with_seed. Done means establishing a documented, reproducible seeding approach or clearly identifying the required support.

Written by the indexing model from the issue text.

Description

Good Day

I am using RcppParallel and the shuffle function of RcppArmadillo to shuffle vec, But the result is not repeatable even I used the set.seed of R or the withr::with_seed or arma::set_seed in the C++ codes. To be reproducible, is there a function like set.seed of R base to do this? Thank you.

Dominant language
C++
Stars
173
Forks
60
Avg merge
1h 55m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RcppCore/RcppParallel

All issues in RcppCore/RcppParallel

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.