PHP » GoLang |
login |
register |
about
|
rand(PHP 4, PHP 5, PHP 7) rand — Generate a random integer Description
int rand
( void
)
int rand
( int
$min
, int $max
)
If called without the optional Caution
This function does not generate cryptographically secure values, and should not be used for cryptographic purposes. If you need a cryptographically secure value, consider using random_int(), random_bytes(), or openssl_random_pseudo_bytes() instead.
Parameters
Return Values
A pseudo random value between Changelog
Examples
Example #1 rand() example
<?php The above example will output something similar to: 7771 22264 11 NotesWarning
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|