返回最小值和最大值之间的随机 BigInteger 的函数

问题描述

我需要生成 2^64 和 99999999999999999999 之间的随机 BigInteger 数的 C# 代码 类似的东西:

BigInteger maxLimit = BigInteger.Parse("99999999999999999999");
BigInteger minLimit = BigInteger.Parse("18446744073709551617");
BigInteger bigInteger = maxLimit - minLimit;
Random randNum = new Random();
randNum.Next(minLimit,maxLimit); //cannot convert from 'System.Numerics.BigInteger' to 'int'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)