Header menu logo Nu

Gen Type

Generates engine-specific values on-demand.

Static members

Static member Description

Gen.id

Full Usage: Gen.id

Returns: Guid

Generate a unique id. Thread-safe.

Returns: Guid

Gen.id32

Full Usage: Gen.id32

Returns: uint32

Generate a unique non-zero 32-bit id. Thread-safe.

Returns: uint32

Gen.id64

Full Usage: Gen.id64

Returns: uint64

Generate a unique non-zero 64-bit id. Thread-safe.

Returns: uint64

Gen.name

Full Usage: Gen.name

Returns: string

Generate a unique name based on a 64-bit id. Thread-safe.

Returns: string

Gen.random

Full Usage: Gen.random

Returns: int

Get the next random number integer. Thread-safe.

Returns: int

Gen.randomb

Full Usage: Gen.randomb

Returns: bool

Get the next random boolean. Thread-safe.

Returns: bool

Gen.randomd

Full Usage: Gen.randomd

Returns: float

Get the next random double >= 0.0 and < 1.0. Thread-safe.

Returns: float

Gen.randomf

Full Usage: Gen.randomf

Returns: single

Get the next random single >= 0.0f and < 1.0f. Thread-safe.

Returns: single

Gen.randoml

Full Usage: Gen.randoml

Returns: int64

Get the next random long. Thread-safe.

Returns: int64

Gen.randomu

Full Usage: Gen.randomu

Returns: uint

Get the next random unsigned. Thread-safe.

Returns: uint

Gen.randomul

Full Usage: Gen.randomul

Returns: uint64

Get the next random unsigned long. Thread-safe.

Returns: uint64

Gen.randomy

Full Usage: Gen.randomy

Returns: byte

Get the next random byte. Thread-safe.

Returns: byte

Type something to start searching.