The RandX class is used to generate random numbers using a 128-bit integer seed. The algorithm comes from the provided link: https://github.com/AndreasMadsen/xorshift
RandX
RandX 类用于通过128位整型种子创建随机数。算法来自提供的链接:https://github.com/AndreasMadsen/xorshift
Random seed.
Constructor method.
构造方法
静态
A random number generator seeded based on the current time.
基于当前时间种子的随机数生成器。
A random number in the range [0, 1).
Returns a random number in the range [0, 1).
返回一个介于[0, 1)范围内的随机数。
64 bit random number.
Return a 64 bit random number through a 2x32-bit array.
通过2x32位的数组,返回64位的随机数。
En
The
RandX
class is used to generate random numbers using a 128-bit integer seed. The algorithm comes from the provided link: https://github.com/AndreasMadsen/xorshiftZh
RandX
类用于通过128位整型种子创建随机数。算法来自提供的链接:https://github.com/AndreasMadsen/xorshift