The following functions that generate a random `BigInt` need to be implemented under `include/functions/random.hpp`: - [x] Having specific number of digits: ```C++ friend BigInt big_random(size_t num_digits); ``` Returns a random `BigInt` having the specified number of digits. If the number of digits are not specified, use a random value for it. - [ ] Within a certain range: ```C++ friend BigInt big_random(const T& low, const T& high); ``` Returns a random `BigInt` such that `low <= BigInt <= high`. **Note**: type `T` can be a `BigInt`, `std::string` or `long long`.
The following functions that generate a random
BigIntneed to be implemented underinclude/functions/random.hpp:Having specific number of digits:
Returns a random
BigInthaving the specified number of digits. If the number of digits are not specified, use a random value for it.Within a certain range:
Returns a random
BigIntsuch thatlow <= BigInt <= high.Note: type
Tcan be aBigInt,std::stringorlong long.