string getRandomDate(
string
$mindate, string
$maxdate
)
|
|
Return a random date between the two dates passes as parameters. Parameters and return value are English textual datetime descriptions 'Y-m-d H:i:s'
Parameters:
string |
$mindate: |
English textual datetime description 'Y-m-d H:i:s' of minimun date |
string |
$maxdate: |
English textual datetime description 'Y-m-d H:i:s' of maximun date |
string getRandomDomain(
)
|
|
Returns a random Internet domain (a www followed by a random string ended by a valid internet
string getRandomFTPMethod(
)
|
|
Returns a semi random HTTP method (90% will be RETR)
string getRandomHTTPMethod(
)
|
|
Returns a semi random HTTP method (90% will be GET)
Returns a random IP (string with 4 numbers between 0 and 255). No check for validity is made
string getRandomProtocol(
)
|
|
Returns a random protocol (90% will be http)
integer getRandomRetourCode(
)
|
|
Returns a semirandom return code (90% are 200 return code)
Return a random size between 0 and 50K
string getRandomString(
[integer
$length = 10]
)
|
|
Returns a random string of the length demanded (10 characters by default)
Parameters:
Returns a random user, composed of one letter and 6 numbers