Random Class
Provides static references to randomization functions.
Constructor
Random
()
static
Item Index
Properties
Methods
edgeID
-
[now]
Return an identifier for Events.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying an edge.
elementID
-
[now]
Return an identifier for Events.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying an element.
eventID
-
[now]
Return an identifier for Events.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying an event.
exceptionID
-
[now]
Return an identifier for Exceptions.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying a exception.
float
-
range -
[min]
Return a floating point number.
Parameters:
-
rangeNumberThe range/spread in which the returned number should originate.
-
[min]Number optionalThe minimum starting value to offset the returned number specified by the range. If omitted, the returned number is between 0 and this value.
Returns:
A number from within the specified range.
int
-
range -
[min]
Return an integer point number.
Parameters:
-
rangeNumberThe range/spread in which the returned numbenr should originate.
-
[min]Number optionalThe minimum starting value to offset the returned number specified by the range. If omitted, the returned number is between 0 and this value.
Returns:
A number from within the specified range.
sessionID
-
[now]
Return an identifier for Sessions.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying a session.
setID
-
[now]
Return an identifier for Sets.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying a set.
string
-
len
Return a String of the specified length.
Parameters:
-
lenNumberThe length of the String to return.
Returns:
A string with the specified length.
terminalID
-
[now]
Return an identifier for Terminals.
Parameters:
-
[now]Number optionalTimestamp for marking the ID strictly for uniqueness. Defaults to Date.now().
Returns:
A string for identifying a terminal.
Properties
alphanumeric
Array
private
Quick reference array for generating random strings
