mt_rand

PHP 4, PHP 5, PHP 7, PHP 8
mt_rand - Generate a random value via the Mersenne Twister Random Number Generator
Mt Rand Online Tool
Manual
Code Examples

Example #1 mt_rand example

Result: 1604716014 1478613278 6
PHP Version:


Example #2 of mt_rand

PHP Version:


Function mt_rand:

Mathematical Functions Functions

Most used PHP functions