hotbits讨厌我......或者这里有什么不对吗? [英] Does hotbits hate me ... or is something else wrong here?

查看:77
本文介绍了hotbits讨厌我......或者这里有什么不对吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,今天怎么样?所以基本上我有一个程序使用hotbits(基于放射性衰变的真实在线随机数生成器)来生成真正随机的字母数字代码(注意:该程序是来自其网站的包randomX)。


因为我需要很多代码,所以我昨晚运行程序然后突然吐出以下错误:

展开 | 选择 | Wrap | 行号

解决方案

展开 | 选择 | Wrap | 行号


该死的!我怎样才能为我的电脑买一台放射性衰变设备!我在这里,使用伪随机数生成器,如一些新鲜的城外Jasper。



你给了你自己的答案(阅读你自己的评论)。在你的条件下检查buflen变量来处理它。


亲切的问候,


Jos



但我在编辑中提到我试过那不是吗?如果我写了一个if语句,在buflen达到最大长度后突破了while循环,它开始重复它为我生成的代码...


或者那不是 ;检查buflen变量?


只是这样你们都知道我去了random.org(如果你要生产的话,那就是使用白噪声概念的hotbits的替代品)真正的随机数),他们可以为你生成这么多随机的字母数字代码。所以我只是将这么多复制并粘贴到记事本文件中,我会从那里读取它。我还是想知道如何解决这个问题......


再次感谢你的帮助。


- 闪耀


Hey guys, how''s it going today? So basically I have a program that uses hotbits (a real online random number generator based off radioactive decay) to produce truly random alphanumeric codes (Note: the program is the package randomX from their website).

Since I needed many codes I ran the program last night and then all of a sudden it spit out the following error:

Expand|Select|Wrap|Line Numbers

解决方案

Expand|Select|Wrap|Line Numbers


Hot damn! How can I get me a radioactive decay device for my computer! And here I was, using a pseudo-random number generator like some fresh-from-out-of-town Jasper.


You gave the answer yourself (read your own comment). Take care of it by
checking the buflen variable in your while condition.

kind regards,

Jos

But I mentioned in my edit that I tried that didn''t I? If I write an if statement that breaks out of the while loop after buflen has reached the maximum length it starts to repeat the code it produces for me...

Or was that not "checking the buflen variable"?

Just so you all know I went to random.org (an alternative to hotbits that uses the concept of "white noise" if you will to produce real random numbers) and they can produce so many random alphanumeric codes for you. So I simply copied and pasted so many to a notepad file and I''ll read it from there. I''d still like to figure out how to fix this problem though...

Again, thanks for your help.

-blazed


这篇关于hotbits讨厌我......或者这里有什么不对吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆