Skip to content

@ue-too/being-portable / Services

Type Alias: Services ​

Services = object

Defined in: being-portable/src/host.ts:32

Sources of randomness and time for randomInt and now.

Properties ​

now() ​

readonly now: () => number

Defined in: being-portable/src/host.ts:36

A finite number, usually milliseconds.

Returns ​

number


random() ​

readonly random: () => number

Defined in: being-portable/src/host.ts:34

A number in [0, 1).

Returns ​

number