Syed Faheel Ahmad
Syed Faheel Ahmad
The file `include/functions/random.hpp` doesn't exist yet, you'll have to create it. The "template" would be similar to that of `math.hpp` (in `include/functions/`), so you can duplicate and modify `math.hpp`.
For reference, the following is the most appropriate way to generate true random numbers C++: ```C++ std::random_device rand_generator; size_t rand_int = rand_generator(); // get a random number between 0 and...
@IbrarYunus I've been working on the second function and it's almost done. You can take up #18 if you're interested in contributing.
@FR4NKESTI3N Sure, you can give it a try.
No, I haven't
Whichever way you like. For `pow` use the [binary exponentiation method](https://en.wikipedia.org/wiki/Binary_exponentiation).
Yeah, I'm fixing the `pow` function and the tests. There are a few more issues with it such as handling 00, 0-1, 0-2 etc.
@arvindvs Sure, go ahead!
Use [Newton's method](https://en.wikipedia.org/wiki/Integer_square_root#Algorithm_using_Newton's_method) for `sqrt()`.
Yes, you can push your changes and create a PR. Then you can comment regarding the issue you're facing in your PR.