new integer()
- Source:
Methods
(static) factorial()
Alias for factorial.of
- Source:
(static) fromMillitime() → {Integer}
Returns the number of milliseconds since the Unix epoch
- Source:
Returns:
milliseconds since the 60's ended
- Type
- Integer
(static) fromRandom(maximum) → {Integer}
Returns a new random unsigned integer with a maximum size specified in bytes
Parameters:
Name | Type | Description |
---|---|---|
maximum |
Integer | number of bits |
- Source:
Returns:
a random integer from Zero to 2^bytes (inclusive)
- Type
- Integer
(static) fromUnixtime() → {Integer}
Returns the number of seconds since the Unix epoch
- Source:
Returns:
seconds since the 60's ended
- Type
- Integer
(static) gcd()
Alias for integer.greatest_common_divisor
- Source:
(static) greatest_common_divisor(a, b) → {Integer}
Find the greatest common divisor of two integers
Parameters:
Name | Type | Description |
---|---|---|
a |
Integer | the first operand |
b |
Integer | the second operand |
- Source:
Returns:
greatest common divisor
- Type
- Integer