API Docs for: 0.0.0
Show:

Random Class

Module: Elements

Provides static references to randomization functions.

Constructor

Random

() static

Methods

edgeID

(
  • [now]
)
String

Return an identifier for Events.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying an edge.

elementID

(
  • [now]
)
String

Return an identifier for Events.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying an element.

eventID

(
  • [now]
)
String

Return an identifier for Events.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying an event.

exceptionID

(
  • [now]
)
String

Return an identifier for Exceptions.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying a exception.

float

(
  • range
  • [min]
)
Number

Return a floating point number.

Parameters:

  • range Number

    The range/spread in which the returned number should originate.

  • [min] Number optional

    The minimum starting value to offset the returned number specified by the range. If omitted, the returned number is between 0 and this value.

Returns:

Number:

A number from within the specified range.

int

(
  • range
  • [min]
)
Integer

Return an integer point number.

Parameters:

  • range Number

    The range/spread in which the returned numbenr should originate.

  • [min] Number optional

    The minimum starting value to offset the returned number specified by the range. If omitted, the returned number is between 0 and this value.

Returns:

Integer:

A number from within the specified range.

sessionID

(
  • [now]
)
String

Return an identifier for Sessions.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying a session.

setID

(
  • [now]
)
String

Return an identifier for Sets.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying a set.

string

(
  • len
)
String

Return a String of the specified length.

Parameters:

  • len Number

    The length of the String to return.

Returns:

String:

A string with the specified length.

terminalID

(
  • [now]
)
String

Return an identifier for Terminals.

Parameters:

  • [now] Number optional

    Timestamp for marking the ID strictly for uniqueness. Defaults to Date.now().

Returns:

String:

A string for identifying a terminal.

Properties

alphanumeric

Array private

Quick reference array for generating random strings