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

feat: Expanded on binary string generation #883

Merged
merged 9 commits into from
Sep 4, 2024

Conversation

pshukla441
Copy link
Contributor

-Added a new function std::string binary(int min, int max) which generates a binary string with its equivalent decimal value being within the specified range (inclusive).

-Removed use of unisgned integers, as they can lead to unintended overflows

-Added relevant unit tests for the new std::string binary(int min, int max) function

…l distribution

Added two functions to number.h, which are overloads of each other. One will generate a number on a normal distribution given a mean and standard deviation, the other does the same but limits the output to a certain minimum and maximum value

Added the relevant unit tests to number_test.cpp
-Added functionality to generate a binary string which has a decimal equivalent within a specified range

-Removed use of unisgned integers, as they can lead to unintended overflows
@cieslarmichal cieslarmichal merged commit 138435f into cieslarmichal:main Sep 4, 2024
12 checks passed
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