使用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.
在针对历史堆栈的测试应用程序中,只存储随机数作为事件。
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.
第三个参数允许我们覆盖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.
第一个bean将基于一个随机数做出是否调用第二个bean的选择。
The first bean will make a choice, based on a random number, to either call the second bean or not.
然后它会在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.
RonRivest开发了基于256字节的密钥生成随机数的RC4加密算法。
Ron Rivest developed the RC4 algorithm to generate random bytes based on a 256 byte key.
例如,伪随机数可用于进程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.
Boost随机接口划分为两个部分:随机数生成器和随机数必须位于其中的分布。
The Boost random interface is divided into two parts: a random-number generator and a distribution within which the random number must lie.
需要指出的是这并非全是随机数,按约定,最前面的两个字节是TLS版本(0301)。
Note that it's not completely random. The first two bytes are, by convention, the TLS version (03 01).
但为什么两个看起来毫不相干的事儿——明显并不重要的眼球活动和随机数,会被联系起来呢?
But why would two seemingly unconnected things - apparently inconsequential eye movements and random Numbers - be connected?
一个好的例子是,通过从一个适当大的随机数池中随机分配数字,使得猜测进程标识符极为困难。
A good example is to make it extremely difficult to guess process identifiers by randomly allocating Numbers from a reasonable large random number pool.
和随机数生成程序、当前日期/时间函数一样,UDR通常是变化的,因此不能用于函数索引。
UDRs, like random number generators and current date/time functions, are variant and therefore cannot be used.
换句话说,就是重复利用巴恩·斯利蕨类公式所产生的随机数可以形成一个蕨类形状的独特物体。
In other words, random Numbers generated over and over using Barnsley's fern formula ultimately produce a unique fern-shaped object.
我获得0和89999之间的一个随机数,并且加上10000,以获得所需范围内的数字。
I get a random number between 0 and 89999 inclusively and add 10000 to it to get a number in the desired range.
应用推荐