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

update random seed in example test #7

Merged
merged 2 commits into from
Nov 18, 2020
Merged

Conversation

mcalhoun
Copy link
Member

what

  • update the random number generator with a seed

why

  • The rand package generates pseudo-random numbers, which are generated based on a specific initial value (called "seed"). Without providing an initial seed value, you'll likely generate the same number over and over again, which defeats the purpose of using it here in the tests.

references

@mcalhoun mcalhoun requested a review from a team as a code owner November 18, 2020 20:29
@mcalhoun mcalhoun changed the title update random seed update random seed in example test Nov 18, 2020
@mcalhoun mcalhoun merged commit cff44d1 into master Nov 18, 2020
@mcalhoun mcalhoun deleted the chore/update-random-example branch November 18, 2020 20:41
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.

2 participants