如何解决返回最小值和最大值之间的随机 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 举报,一经查实,本站将立刻删除。