number
Extends:
Static Method Summary
Static Public Methods | ||
public static |
Returns a random number using the type base number generators above |
|
public static |
Returns a random number adjacent to the supplied number |
|
public static |
Returns a random floating point number |
|
public static |
Returns a float value within the supplied range |
|
public static |
Returns a int16 [-32768, 32767] |
|
public static |
Returns a int32 [-2147483648, 2147483647] |
|
public static |
Returns a int8 [-128, 127] |
|
public static |
Returns a random number that may be interesting |
|
public static |
Returns a random signed number |
|
public static |
Returns a random power of 2 between 1 and 2048 |
|
public static |
uint16(bypass: *): * Returns a uint16 [0, 65535] |
|
public static |
Returns a uint32 [0, 4294967295] |
|
public static |
Returns a uint8 [0, 255] |
|
public static |
Returns a random unsigned number |
Static Private Methods | ||
private static |
_exceed(value: *): * Returns a number that is more likely to exceed the supplied boundary |
Static Public Methods
public static any(): number source
Returns a random number using the type base number generators above
public static even(number: number): number source
Returns a random number adjacent to the supplied number
Params:
Name | Type | Attribute | Description |
number | number |
public static frange(min: number, max: number, precision: number): number source
Returns a float value within the supplied range
public static int16(bypass: *): number source
Returns a int16 [-32768, 32767]
Params:
Name | Type | Attribute | Description |
bypass | * | {boolean} - Determines if the range should be exceeded |
public static int32(bypass: *): number source
Returns a int32 [-2147483648, 2147483647]
Params:
Name | Type | Attribute | Description |
bypass | * | {boolean} - Determines if the range should be exceeded |
public static int8(bypass: *): number source
Returns a int8 [-128, 127]
Params:
Name | Type | Attribute | Description |
bypass | * | {boolean} - Determines if the range should be exceeded |
public static uint16(bypass: *): * source
Returns a uint16 [0, 65535]
Params:
Name | Type | Attribute | Description |
bypass | * | {boolean} - Determines if the range should be exceeded |
Return:
* |
public static uint32(bypass: *): number source
Returns a uint32 [0, 4294967295]
Params:
Name | Type | Attribute | Description |
bypass | * | {boolean} - Determines if the range should be exceeded |
public static uint8(bypass: *): number source
Returns a uint8 [0, 255]
Params:
Name | Type | Attribute | Description |
bypass | * | {boolean} - Determines if the range should be exceeded |
Static Private Methods
private static _exceed(value: *): * source
Returns a number that is more likely to exceed the supplied boundary
Params:
Name | Type | Attribute | Description |
value | * | {number} |
Return:
* |