Module:ns.wrap.php.rand
From NoxBot the modular PHP IRC bot
| Module: ns.wrap.php.rand | |
|---|---|
| Developer | Mark Sanders |
| Namespace | wrap.php |
| Authgroup | wrap_php |
| Commands | getrandmax srand |
| Copyright | 2005-2009 Mark Sanders |
| License | GNU GPLv3 |
Description
This module is a generated module based on various functions in PHP.
The commands in here will act more or less identical to the functions in PHP although their argument handling is mostly checked before being passed to the actual function because of the way argument handling works.
Also the return values will always be a string and the incoming arguments the same. There is some magic performed around the return values to make them agreeable to the NoxScript way of dealing with them.
Errors are not captured or returned to the user although they may display in the console.
Some PHP functions may do things you would not want in a bot.
Use these commands at your own risk.
Commands
getrandmax
- AuthGroup: wrap_php
- No aliases defined.
- No arguments
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "getrandmax". See also http://php.net/getrandmax
This command is a wrapper for the PHP function getrandmax.
lcg_value
- AuthGroup: wrap_php
- No aliases defined.
- No arguments
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "lcg_value". See also http://php.net/lcg_value
This command is a wrapper for the PHP function lcg_value.
mt_getrandmax
- AuthGroup: wrap_php
- No aliases defined.
- No arguments
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "mt_getrandmax". See also http://php.net/mt_getrandmax
This command is a wrapper for the PHP function mt_getrandmax.
mt_rand
- AuthGroup: wrap_php
- No aliases defined.
- Arguments: optional:integer, optional:integer
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "mt_rand". See also http://php.net/mt_rand
This command is a wrapper for the PHP function mt_rand.
mt_srand
- AuthGroup: wrap_php
- No aliases defined.
- Argument: optional:integer
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "mt_srand". See also http://php.net/mt_srand
This command is a wrapper for the PHP function mt_srand.
rand
- AuthGroup: wrap_php
- No aliases defined.
- Arguments: optional:integer, optional:integer
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "rand". See also http://php.net/rand
This command is a wrapper for the PHP function rand.
srand
- AuthGroup: wrap_php
- No aliases defined.
- Argument: optional:integer
- Chaining: Chaining capable
- Help line: Equivalant to PHP's function: "srand". See also http://php.net/srand
This command is a wrapper for the PHP function srand.
Copyright and License
Copyright (C) 2005-2009 Mark Sanders
License: GNU GPLv3
User comments
|
Below you can find comments and annotations added by users. |
|
User comments can include false information. We are not responsble for the content posted by users. |
|
Useful links for NoxBot users | |||||
|
Browse through the functionality of NoxBot by | |||||
|
Useful links for NoxBot Developers and module writers | |||||

