Home Reference Source
public class | source

number

Extends:

lib/make.js~make → number

Static Method Summary

Static Public Methods
public static

any(): number

Returns a random number using the type base number generators above

public static

even(number: number): number

Returns a random number adjacent to the supplied number

public static

Returns a random floating point number

public static

frange(min: number, max: number, precision: number): number

Returns a float value within the supplied range

public static

int16(bypass: *): number

Returns a int16 [-32768, 32767]

public static

int32(bypass: *): number

Returns a int32 [-2147483648, 2147483647]

public static

int8(bypass: *): number

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

uint32(bypass: *): number

Returns a uint32 [0, 4294967295]

public static

uint8(bypass: *): number

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

Return:

number

public static even(number: number): number source

Returns a random number adjacent to the supplied number

Params:

NameTypeAttributeDescription
number number

Return:

number

public static float(): number source

Returns a random floating point number

Return:

number

public static frange(min: number, max: number, precision: number): number source

Returns a float value within the supplied range

Params:

NameTypeAttributeDescription
min number

Start value

max number

End value

precision number
  • nullable: true

Return:

number

public static int16(bypass: *): number source

Returns a int16 [-32768, 32767]

Params:

NameTypeAttributeDescription
bypass *

{boolean} - Determines if the range should be exceeded

Return:

number

public static int32(bypass: *): number source

Returns a int32 [-2147483648, 2147483647]

Params:

NameTypeAttributeDescription
bypass *

{boolean} - Determines if the range should be exceeded

Return:

number

public static int8(bypass: *): number source

Returns a int8 [-128, 127]

Params:

NameTypeAttributeDescription
bypass *

{boolean} - Determines if the range should be exceeded

Return:

number

public static interesting(): number source

Returns a random number that may be interesting

Return:

number

public static signed(): number source

Returns a random signed number

Return:

number

public static tiny(): number source

Returns a random power of 2 between 1 and 2048

Return:

number

public static uint16(bypass: *): * source

Returns a uint16 [0, 65535]

Params:

NameTypeAttributeDescription
bypass *

{boolean} - Determines if the range should be exceeded

Return:

*

public static uint32(bypass: *): number source

Returns a uint32 [0, 4294967295]

Params:

NameTypeAttributeDescription
bypass *

{boolean} - Determines if the range should be exceeded

Return:

number

public static uint8(bypass: *): number source

Returns a uint8 [0, 255]

Params:

NameTypeAttributeDescription
bypass *

{boolean} - Determines if the range should be exceeded

Return:

number

public static unsigned(): number source

Returns a random unsigned number

Return:

number

Static Private Methods

private static _exceed(value: *): * source

Returns a number that is more likely to exceed the supplied boundary

Params:

NameTypeAttributeDescription
value *

{number}

Return:

*