Namespace: Utilities

Utilities

Utility functions.

Methods


<static> randomString(length)

Creates a random alphanumeric string.

Parameters:
Name Type Description
length Number

Character length of generated string.

Returns:
Type
String

<static> seedSort(comparator, array)

Sorts an array by shortest distance to comparator's seed.

Parameters:
Name Type Description
comparator Player

The player to compare to.

array Array.<Player>

The players to sort.


<static> shuffle(array)

Shuffles an array into a random order.

Parameters:
Name Type Description
array Array.<*>

An array of any objects.