回想一下我们上周介绍的非常基本的构建块,它允许您获取1到10或1或100之间的随机数。
Recall that very basic building block we introduced last week which allowed you to grab a random number between 1 and 10 or 1 or a hundred.
使用Boost库生成随机数。
使用Boost随机数生成器。
计算机通常只生成伪随机数。
向执行线程分配随机数将帮助您实现这个目的。
Assigning random Numbers to execution threads will help you achieve this.
根据两个随机数计算索赔金额(参见上一节)。
Calculates the claim amount based on two random Numbers (see "Calculating the claim amount" above for more information).
该方法基于迭代评估,利用随机数集作为输入。
The method is based on iterative evaluations using sets of random numbers as inputs.
跟随其后是28字节的随机数,它将在后面使用。
It's followed by 28 random bytes. This will be used later on.
第一个随机数(R1)判定索赔额是否低于 $500。
The first random number (R1) determines if the claim amount is less than $500 or greater than $500.
在针对历史堆栈的测试应用程序中,只存储随机数作为事件。
In the testing application for the history stack, we only stored random Numbers as events.
所以,让我们更进一步,在产生随机数的地方加一个互斥量。
So, let's say we go ahead and add a mutex that surrounds the random number generator.
到了这儿,您就可以回到前面给每个骰子加一个随机数产生器。
Having done this, you could then go ahead and give each die its own random number generator.
第三个参数允许我们覆盖JSSE的随机数生成器(RNG)。
The third parameter would allow us to override JSSE's random number generator (RNG).
蒙特卡洛模拟涉及了使用随机数和概率来找到复杂问题的解决方案。
A Monte Carlo Simulation involves the use of random Numbers and probability to find solutions to complex problems.
在本例中,我们用一些数学函数创建0到100之间的一个随机数。
In this case, you're using some math functions to create a random number from 0 to 100.
下面,需要生成nonce字段,它包装了一个随机数作为一个整数。
Next, I need to author the nonce field, which wraps a random number as an integer.
然后它会在0,1中取一个随机数,也就是0到1之间包括0但不包括1。
It then picks a random number in 0, 1, that is, in the interval from zero inclusive to one exclusive.
CwMtx没有内置的随机数生成器,也没有用随机元素填充矩阵的类函数。
CwMtx has no built-in random number generator, and there is no class function that fills a matrix with random elements.
模块现在有一个按钮,它用于从服务器中检索随机数并将其与单击次数相比较。
The module now has a button that retrieves the random number from the server and compares it to your click count.
要得到真正的随机数,计算机不得不依赖外部资源,比如测量大气噪声的设备。
To get true random numbers, computers have to rely on external sources, such as devices to measure atmospheric noise.
我们没有建立复杂的测试应用程序,该页面在每次单击链接时仅仅生成随机数。
Rather than building some sophisticated application for testing, this page will simply generate random Numbers every time a link is clicked.
蒙特卡罗模拟法是一项涉及使用随机数和概率来寻找复杂问题的解决方案的技术。
Monte Carlo Simulation is a technique that involves using random Numbers and probability to find solutions to complex problems.
因此,放着在铯边上的盖革计数器的随机响声的间隔时间可以被用来产生随机数。
Thus the timing of the random ticks of a Geiger counter placed near the cesium might be used to generate random Numbers.
如果在两个线程交叠时调用rand,它就可能返回一个错误的随机数。
If calls to rand from two threads overlap, it is possible for the wrong Numbers to be returned.
RonRivest开发了基于256字节的密钥生成随机数的RC4加密算法。
Ron Rivest developed the RC4 algorithm to generate random bytes based on a 256 byte key.
Salting这种技术可以用于生成随机数,并将该随机数用于计算密码的哈希。
Salting is a technique in which a random number is generated in order to compute the hash for the password.
这是一个过滤器,它将XY Z替代成小于611(该数字是任意选择的)的随机数。
This is a filter that replaces XYZ with a random number less than 611 (that number is arbitrarily chosen).
例如,伪随机数可用于进程ID和包id,这使得那些想要进行攻击的人很难进行欺骗。
For instance, pseudo-random Numbers are used for process IDs and packet IDs, which makes spoofing significantly more difficult for a would-be attacker.
如果用户重新加载Portlet,除非两个请求之间缓存过期,否则随机数不会更改。
If the user reloads the portlet, the Random number will not change unless the cache expires between two requests.
它使用随机数5生成器通过重复地根据不确定变量的概率分布采样来生成模型的多重情境。
It typically USES random number 5 generators to generate multiple scenarios of a model by repeatedly sampling values from the probability distributions for the uncertain variables.
应用推荐