Skip to content

Add seed variability tests for numeric random types#157

Merged
kudima03 merged 2 commits into
kudima03:mainfrom
StanislavKozachenko:feat/seed-variability-tests
May 19, 2026
Merged

Add seed variability tests for numeric random types#157
kudima03 merged 2 commits into
kudima03:mainfrom
StanislavKozachenko:feat/seed-variability-tests

Conversation

@StanislavKozachenko
Copy link
Copy Markdown
Contributor

Closes #42

@StanislavKozachenko StanislavKozachenko force-pushed the feat/seed-variability-tests branch from f4af4e0 to 51efb4c Compare May 19, 2026 09:11
@StanislavKozachenko
Copy link
Copy Markdown
Contributor Author

ProduceDifferentLengths failure is unrelated to this PR — pre-existing flaky test. Worth a separate issue.

@kudima03 kudima03 self-assigned this May 19, 2026
Random random1 = new Random(42);
Random random2 = new Random(137);

double[] seq1 =
Copy link
Copy Markdown
Owner

@kudima03 kudima03 May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use IEnumerable<double> instead of concrete array type

.Select(x => Convert.ToDouble(x.NumberValue)),
];

double[] seq2 =
Copy link
Copy Markdown
Owner

@kudima03 kudima03 May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use IEnumerable<double> instead of concrete array type

@kudima03 kudima03 self-requested a review May 19, 2026 09:27
@kudima03
Copy link
Copy Markdown
Owner

@StanislavKozachenko Thanks for contribution!

@kudima03 kudima03 merged commit 0bbae20 into kudima03:main May 19, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test for variability between seeds

2 participants