Gumbo_Number
Number Class
The current implementation only provides static methods, performing simple operations dealing with Numbers. This class will be changed in the future into something more interesting. For now, it performs simple tasks.
Author(s): |
Michael Luster <mluster79@yahoo.com> |
License: | New BSD License |
Copyright: | Copyright (c) 2007, iBayou, Michael Luster |
Link: | http://sourceforge.net/projects/phpgumbo |
Version: | 1.0.0 |
Class Methods
public static string getSuffix ( int $num )
[line 45]
Returns the suffix for a given number
Parameter(s):
- (int) $num
- throws:
Gumbo_Exception
[ Top ]public static int rand ( [int $min], [int $max] ) [line 122]Returns a randomly generated number
Parameter(s):
- (int) $min
- (int) $max
- throws:
Gumbo_Exception
[ Top ]public static int random ( [int $digits] ) [line 86]Returns a randomly generated number x digits long
Parameter(s):
- (int) $digits :: number of digits
- throws:
Gumbo_Exception
[ Top ]