文档

Unity Engine

Unity Engine

NextUInt

Returns a uniformly random uint value in the interval [0, 4294967294].
阅读时间1 分钟最后更新于 1 个月前

Definition

NextUInt()

Returns a uniformly random uint value in the interval [0, 4294967294].
public uint NextUInt()

Returns

Type

Description

uintA uniformly random unsigned integer.

NextUInt(uint)

Returns a uniformly random uint value in the interval [0, max).
public uint NextUInt(uint max)

Parameters

max

The maximum value to generate, exclusive.

Returns

Type

Description

uintA uniformly random unsigned integer in the range [0, max).

NextUInt(uint, uint)

Returns a uniformly random uint value in the interval [min, max).
public uint NextUInt(uint min, uint max)

Parameters

min

The minimum value to generate, inclusive.

max

The maximum value to generate, exclusive.

Returns

Type

Description

uintA uniformly random unsigned integer in the range [min, max).