All Functions

int - number

Returns a positive number, based on the input parameters.

Note: The Integer returned is not mathematically correct as Integers are like whole numbers, but they also include negative numbers (no fractions allowed!)

Source: http://www.mathsisfun.com/whole-numbers.html

Usage(s)

int () Returns an integer from 0 to 9 included
int ( $length ) Returns an integer as a string with a length of $length characters
int ( $minimum , $maximum ) Returns an integer from $minimum to $maximum inclusive

Parameter(s)

$length The fixed string length of the integer thet will be returned.
$minumum The minimum value of the integer returned
$maximum The maximum value of the integer returned

Example(s)

Random integer values

int()
int(60,70)

The above example could output:
5
55

Random integer with a fixed length

int(2)
int(6)

The above example could output:
66
0123456

Generating positive and negative numbers

list(,-)int().int(2)

will output something like:
6.63
7.84
6.72
0.83
-2.69
-5.01
3.27
0.16
6.14
1.37
-3.42
0.46
-9.92
6.34
1.47
-9.50
7.81
5.87
4.23
0.87

The LIST(,-) function is reponsible for adding a minus character OR nothing as these are the possible list values delimited using the "," character

See also

hex - hexadecimal value guid / uuid - globally / universally unique identifier bin - binary value modulo - modulo calculation range - range of numbers oct - octal values