random_int Generates cryptographically secure pseudo-random integers &reftitle.description; intrandom_int intmin intmax Generates cryptographic random integers that are suitable for use where unbiased results are critical, such as when shuffling a deck of cards for a poker game. &csprng.sources; &csprng.function.backport; &reftitle.parameters; min The lowest value to be returned, which must be PHP_INT_MIN or higher. max The highest value to be returned, which must be less than or equal to PHP_INT_MAX. &reftitle.returnvalues; Returns a cryptographically secure random integer in the range min to max, inclusive. &reftitle.errors; &csprng.errors; If max is less than min, an Error will be thrown. &reftitle.examples; <function>random_int</function> example ]]> &example.outputs.similar; &reftitle.seealso; random_bytes