Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add stateless, index-based RNG via SplitMix64
Summary
This PR introduces a stateless, index-based random number generator to Arkouda using a SplitMix64 mixing function. The new implementation enables reproducible random sequences that are independent of execution order, parallelism, and locale count, making them suitable for sampling, shuffling, sketching, and other distributed algorithms.
The PR adds:
Motivation
Existing RNG paths in Arkouda rely on mutable state, which can make results sensitive to chunking and execution order. Many analytics and data-parallel algorithms instead need pure functions of (seed, stream, index).
Design & Implementation
Testing
Adds extensive reproducibility, statistical, and independence tests, with conservative thresholds to avoid CI flakiness.
Compatibility
No changes to existing RNG behavior; new functionality is opt-in.
Future Work
Potential public API exposure and use in distributed shuffle/sampling paths.
Closes #5316: SplitMix64RNG