-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Labels
enhancementNew feature or requestNew feature or requestfunctions: randomRandom functionsRandom functionshelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
The following functions that generate a random BigInt need to be implemented under include/functions/random.hpp:
-
Having specific number of digits:
friend BigInt big_random(size_t num_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:
friend BigInt big_random(const T& low, const T& high);
Returns a random
BigIntsuch thatlow <= BigInt <= high.
Note: type T can be a BigInt, std::string or long long.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfunctions: randomRandom functionsRandom functionshelp wantedExtra attention is neededExtra attention is needed