Skip to content

M_Cyjb_MersenneTwister_NextInt64_2

CYJB edited this page Mar 20, 2024 · 10 revisions

MersenneTwister.NextInt64 方法 (Int64, Int64)

返回在指定范围内的随机整数。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public virtual long NextInt64(
	long minValue,
	long maxValue
)

参数

 

minValue
Type: System.Int64
要生成的随机数的下界(随机数可取该下界值)。
maxValue
Type: System.Int64
要生成的随机数的上限(随机数不能取该上限值)。

返回值

Type: Int64
大于或等于 minValue 且小于 maxValue 的 64 位有符号整数。

参见

Reference

MersenneTwister 类
NextInt64 重载
Cyjb 命名空间

Clone this wiki locally