Added functions to generate a random number of a given size and perform exponential functions on BigInt